fixed the sapi_solr search autocompletewith synonyms

This commit is contained in:
2021-07-28 22:11:46 +02:00
parent b67c88dfa7
commit f9a353a32b
6 changed files with 48 additions and 9 deletions

View File

@@ -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');

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -733,6 +733,25 @@ header[role="banner"]{
}
ul.ui-menu.ui-widget-content.ui-autocomplete {
background-color: rgba(0, 0, 0, 0.6);
border-radius: 5px;
border: none;
padding: 0.3em 0.2em;
a.ui-menu-item-wrapper{
color: #fff;
padding:0.1em 0.1em;
display: block;
&.ui-state-active{
background: none;
border: none;
color:#fff;
background-color: rgba(0, 0, 0, 0.9);
}
}
}
// main
aside.messages{