fixed the sapi_solr search autocompletewith synonyms
This commit is contained in:
@@ -38,7 +38,7 @@ class FormAutocomplete extends ControllerBase {
|
||||
|
||||
// Set fulltext search keywords and fields.
|
||||
$query->keys($typed_string);
|
||||
$query->setFulltextFields(['name', 'synonyms']);
|
||||
$query->setFulltextFields(['name', 'field_synonyms']);
|
||||
|
||||
// Set additional conditions.
|
||||
$query->addCondition('status', 1);
|
||||
@@ -49,7 +49,7 @@ class FormAutocomplete extends ControllerBase {
|
||||
$query->setLanguages([$lang]);
|
||||
|
||||
// Do paging.
|
||||
$query->range(0, 10);
|
||||
$query->range(0, 15);
|
||||
|
||||
// Add sorting.
|
||||
$query->sort('search_api_relevance', 'DESC');
|
||||
|
Reference in New Issue
Block a user