You are here

public function SolrAutocompleteInterface::alterSuggesterAutocompleteQuery in Search API Solr 8.2

Allow custom changes to the Solarium Suggester autocomplete query.

This is an object oriented equivalent to hook_search_api_solr_suggester_autocomplete_query_alter() to avoid that any logic needs to be split between the backend class and a module file.

Parameters

\Drupal\search_api_solr\Solarium\Autocomplete\Query $solarium_query: The Solarium query object, as generated from the Search API query.

\Drupal\search_api\Query\QueryInterface $query: The Search API query object representing the executed search query.

See also

hook_search_api_query_alter()

1 method overrides SolrAutocompleteInterface::alterSuggesterAutocompleteQuery()
SearchApiSolrBackend::alterSuggesterAutocompleteQuery in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Allow custom changes to the Solarium Suggester autocomplete query.

File

src/SolrAutocompleteInterface.php, line 131

Class

SolrAutocompleteInterface
Defines an autocomplete interface for Solr search backend plugins.

Namespace

Drupal\search_api_solr

Code

public function alterSuggesterAutocompleteQuery(AutocompleteQuery $solarium_query, QueryInterface $query);