You are here

public function FieldsProcessorPluginBase::preprocessSearchQuery in Search API 8

Preprocesses a search query.

Parameters

\Drupal\search_api\Query\QueryInterface $query: The object representing the query to be executed.

Overrides ProcessorPluginBase::preprocessSearchQuery

2 calls to FieldsProcessorPluginBase::preprocessSearchQuery()
Stemmer::preprocessSearchQuery in src/Plugin/search_api/processor/Stemmer.php
Preprocesses a search query.
Stopwords::preprocessSearchQuery in src/Plugin/search_api/processor/Stopwords.php
Preprocesses a search query.
2 methods override FieldsProcessorPluginBase::preprocessSearchQuery()
Stemmer::preprocessSearchQuery in src/Plugin/search_api/processor/Stemmer.php
Preprocesses a search query.
Stopwords::preprocessSearchQuery in src/Plugin/search_api/processor/Stopwords.php
Preprocesses a search query.

File

src/Processor/FieldsProcessorPluginBase.php, line 305

Class

FieldsProcessorPluginBase
Provides a base class for processors that work on individual fields.

Namespace

Drupal\search_api\Processor

Code

public function preprocessSearchQuery(QueryInterface $query) {
  $keys =& $query
    ->getKeys();
  if (isset($keys)) {
    $this
      ->processKeys($keys);
  }
  $conditions = $query
    ->getConditionGroup();
  $this
    ->processConditions($conditions
    ->getConditions());
}