You are here

public function ResultSet::addIgnoredSearchKey in Search API 8

Adds an ignored search key for the search query.

Parameters

string $ignored_search_key: A single search key (word) that was ignored in the search.

Return value

$this

Overrides ResultSetInterface::addIgnoredSearchKey

File

src/Query/ResultSet.php, line 168

Class

ResultSet
Represents the result set of a search query.

Namespace

Drupal\search_api\Query

Code

public function addIgnoredSearchKey($ignored_search_key) {
  $this->ignoredSearchKeys[$ignored_search_key] = $ignored_search_key;
  return $this;
}