public function SearchApiIndex::preprocessSearchQuery in Search API 7
Preprocess a search query.
The same applies as when preprocessing indexed items: typically, only the fulltext search keys should be processed, queries on specific fields should usually not be altered.
Parameters
SearchApiQuery $query: The object representing the query to be executed.
Return value
SearchApiIndex The called object.
File
- includes/
index_entity.inc, line 702 - Contains SearchApiIndex.
Class
- SearchApiIndex
- Class representing a search index.
Code
public function preprocessSearchQuery(SearchApiQuery $query) {
foreach ($this
->getProcessors() as $processor) {
$processor
->preprocessSearchQuery($query);
}
return $this;
}