Problem/Motivation

I needed a way to get the collation query when solr spellcheck is active and collation is enabled.

Proposed resolution

I added code to the SearchApiSpellcheckSolr class that gets the collation if available and saves it into the collation public field. There are no workarounds.

Remaining tasks

Reviews needed, documentation needed.

User interface changes

None

API changes

Here is how I used this:

  if (!empty($results['search_api_spellcheck'])) {
    $solr_sp = $results['search_api_spellcheck'];
    $collation = "";
    if (!empty($solr_sp->collation))
      $collation = $solr_sp->collation;
CommentFileSizeAuthor
solr-collation.patch740 byteskudorgyozo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

OanaIlea’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

This issue was closed due to lack of activity over a long period of time. If the issue is still acute for you, feel free to reopen it and describe the current state.