protected function SearchApiDbService::preQuery in Search API Database Search 7
Preprocesses a search's database query before it is executed.
This allows subclasses to apply custom changes before the query (and the count query) is executed.
Parameters
SelectQueryInterface $db_query: The database query to be executed for the search. Will have "item_id" and "score" columns in its result.
SearchApiQueryInterface $query: The search query that is being executed.
See also
hook_search_api_db_query_alter()
1 call to SearchApiDbService::preQuery()
- SearchApiDbService::createDbQuery in ./
service.inc - Creates a database query for a search.
File
- ./
service.inc, line 1825 - Contains SearchApiDbService.
Class
- SearchApiDbService
- Indexes and searches items using the database.
Code
protected function preQuery(SelectQueryInterface &$db_query, SearchApiQueryInterface $query) {
}