public function SearchApiQuery::keys in Search API 8
Sets the keys to search for.
If this method is not called on the query before execution, this will be a filter-only query.
Parameters
string|array|null $keys: A string with the search keys, in one of the formats specified by getKeys(). A passed string will be parsed according to the set parse mode. Use NULL to not use any search keys.
Return value
$this
See also
\Drupal\search_api\Query\QueryInterface::keys()
File
- src/
Plugin/ views/ query/ SearchApiQuery.php, line 950
Class
- SearchApiQuery
- Defines a Views query class for searching on Search API indexes.
Namespace
Drupal\search_api\Plugin\views\queryCode
public function keys($keys = NULL) {
if (!$this
->shouldAbort()) {
$this->query
->keys($keys);
}
return $this;
}