You are here

public function SearchApiQuery::getKeys in Search API 7

Retrieves the search keys for this query.

Return value

array|string|null This object's search keys - either a string or an array specifying a complex search expression. An array will contain a '#conjunction' key specifying the conjunction type, and search strings or nested expression arrays at numeric keys. Additionally, a '#negation' key might be present, which means – unless it maps to a FALSE value – that the search keys contained in that array should be negated, i.e. not be present in returned results. The negation works on the whole array, not on each contained term individually – i.e., with the "AND" conjunction and negation, only results that contain all the terms in the array should be excluded; with the "OR" conjunction and negation, all results containing one or more of the terms in the array should be excluded.

Overrides SearchApiQueryInterface::getKeys

See also

keys()

File

includes/query.inc, line 756
Contains SearchApiQueryInterface and SearchApiQuery.

Class

SearchApiQuery
Provides a standard implementation of the SearchApiQueryInterface.

Code

public function &getKeys() {
  return $this->keys;
}