You are here

public function SearchApiQuery::setParseMode in Search API 8

Sets the parse mode.

Parameters

\Drupal\search_api\ParseMode\ParseModeInterface $parse_mode: The parse mode.

Return value

$this

See also

\Drupal\search_api\Query\QueryInterface::setParseMode()

File

src/Plugin/views/query/SearchApiQuery.php, line 874

Class

SearchApiQuery
Defines a Views query class for searching on Search API indexes.

Namespace

Drupal\search_api\Plugin\views\query

Code

public function setParseMode(ParseModeInterface $parse_mode) {
  if (!$this
    ->shouldAbort()) {
    $this->query
      ->setParseMode($parse_mode);
  }
  return $this;
}