You are here

public function QueryInterface::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 filters-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

1 method overrides QueryInterface::keys()
Query::keys in src/Query/Query.php
Sets the keys to search for.

File

src/Query/QueryInterface.php, line 181

Class

QueryInterface
Represents a search query on a Search API index.

Namespace

Drupal\search_api\Query

Code

public function keys($keys = NULL);