You are here

public function SearchApiProcessorInterface::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.

1 method overrides SearchApiProcessorInterface::preprocessSearchQuery()
SearchApiAbstractProcessor::preprocessSearchQuery in includes/processor.inc
Calls processKeys() for the keys and processFilters() for the filters.

File

includes/processor.inc, line 114
Contains SearchApiProcessorInterface and SearchApiAbstractProcessor.

Class

SearchApiProcessorInterface
Interface representing a Search API pre- and/or post-processor.

Code

public function preprocessSearchQuery(SearchApiQuery $query);