You are here

protected function SearchApiSolrService::preQuery in Search API Solr 7

Empty method called before sending a search query to Solr.

This allows subclasses to apply custom changes before the query is sent to Solr. Works exactly like hook_search_api_solr_query_alter().

Parameters

array $call_args: An associative array containing all three arguments to the SearchApiSolrConnectionInterface::search() call ("query", "params" and "method") as references.

SearchApiQueryInterface $query: The SearchApiQueryInterface object representing the executed search query.

2 calls to SearchApiSolrService::preQuery()
SearchApiSolrService::getAutocompleteSuggestions in includes/service.inc
SearchApiSolrService::search in includes/service.inc
Executes a search on the server represented by this object.

File

includes/service.inc, line 2088

Class

SearchApiSolrService
Search service class using Solr server.

Code

protected function preQuery(array &$call_args, SearchApiQueryInterface $query) {
}