New answers tagged

0

Try below code, and you can trim $label as you want. /** * Implements hook_search_api_autocomplete_suggestions_alter(). */ function HOOK_search_api_autocomplete_suggestions_alter(array &$suggestions, array $alter_params) { $used_labels = []; /** @var Drupal\search_api_autocomplete\Suggestion\Suggestion[] $suggestions */ foreach ($suggestions as $...


0

You need to disable Tokenizer. Then it should work.


0

You need to export the solr conf from drupal and import it into solr server. The export button is on your server conf in drupal. The readme of the search api module can guide you about that.


0

Using {{ total_items_count }} varible with twig template not working for me. then I fixed by overriding title of item list itself: Go to /code/themes/THEMENAME open THEMENAME.theme file and add following Hook As: function THEMENAME_preprocess_item_list__search_results(array &$variables) { // The $pager_total_items variable is a global // array ...


Top 50 recent answers are included