You are here

public function SearchApiMultiQueryInterface::__construct in Search API Multi-Index Searches 7

Constructs a new query object.

Parameters

array $options: Associative array of options configuring this query. Recognized options are:

  • conjunction: The type of conjunction to use for this query - either 'AND' or 'OR'. 'AND' by default. This only influences the search keys, filters will always use AND by default.
  • 'parse mode': The mode with which to parse the $keys variable, if it is set and not already an array. See SearchApiMultiQuery::parseModes() for recognized parse modes.
  • languages: The languages to search for, as an array of language IDs. If not specified, all languages will be searched. Language-neutral content (LANGUAGE_NONE) is always searched.
  • offset: The position of the first returned search results relative to the whole result on the server.
  • limit: The maximum number of search results to return. -1 means no limit.
  • 'filter class': Can be used to change the SearchApiQueryFilterInterface implementation to use.
  • 'search id': A string that will be used as the identifier when storing this search in the static cache.

All options are optional.

Throws

SearchApiException If a search with these options won't be possible.

1 method overrides SearchApiMultiQueryInterface::__construct()
SearchApiMultiQuery::__construct in ./search_api_multi.query.inc
Constructs a new query object.

File

./search_api_multi.query.inc, line 46

Class

SearchApiMultiQueryInterface
Interface representing a search query on multiple Search API indexes.

Code

public function __construct(array $options = array());