You are here

public function ResultSet::setIgnoredSearchKeys in Search API 8

Sets the ignored search keys of the search query.

Parameters

string[] $ignored_search_keys: An array of search keys (individual words) that were ignored in the search.

Return value

$this

Overrides ResultSetInterface::setIgnoredSearchKeys

File

src/Query/ResultSet.php, line 176

Class

ResultSet
Represents the result set of a search query.

Namespace

Drupal\search_api\Query

Code

public function setIgnoredSearchKeys(array $ignored_search_keys) {
  $this->ignoredSearchKeys = array_combine($ignored_search_keys, $ignored_search_keys);
  return $this;
}