public function SolrAutocompleteInterface::alterSpellcheckAutocompleteQuery in Search API Solr 8.2
Allow custom changes to the Solarium Spellcheck autocomplete query.
This is an object oriented equivalent to hook_search_api_solr_spellcheck_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
1 method overrides SolrAutocompleteInterface::alterSpellcheckAutocompleteQuery()
- SearchApiSolrBackend::alterSpellcheckAutocompleteQuery in src/
Plugin/ search_api/ backend/ SearchApiSolrBackend.php - Allow custom changes to the Solarium Spellcheck autocomplete query.
File
- src/
SolrAutocompleteInterface.php, line 89
Class
- SolrAutocompleteInterface
- Defines an autocomplete interface for Solr search backend plugins.
Namespace
Drupal\search_api_solrCode
public function alterSpellcheckAutocompleteQuery(AutocompleteQuery $solarium_query, QueryInterface $query);