You are here

public function SolrAutocompleteInterface::alterTermsAutocompleteQuery in Search API Solr 8.2

Allow custom changes to the Solarium Terms autocomplete query.

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

Parameters

\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::alterTermsAutocompleteQuery()
SearchApiSolrBackend::alterTermsAutocompleteQuery in src/Plugin/search_api/backend/SearchApiSolrBackend.php
Allow custom changes to the Solarium Terms autocomplete query.

File

src/SolrAutocompleteInterface.php, line 49

Class

SolrAutocompleteInterface
Defines an autocomplete interface for Solr search backend plugins.

Namespace

Drupal\search_api_solr

Code

public function alterTermsAutocompleteQuery(QueryInterface $query);