You are here

public function SearchApiServiceInterface::query in Search API 7

Creates a query object for searching on an index lying on this server.

Parameters

SearchApiIndex $index: The index to search on.

$options: Associative array of options configuring this query. See SearchApiQueryInterface::__construct().

Return value

SearchApiQueryInterface An object for searching the given index.

Throws

SearchApiException If the server is currently disabled.

2 methods override SearchApiServiceInterface::query()
SearchApiAbstractService::query in includes/service.inc
Implements SearchApiServiceInterface::__construct().
SearchApiDummyService::query in tests/search_api_test_2.module
Creates a query object for searching on an index lying on this server.

File

includes/service.inc, line 257
Contains SearchApiServiceInterface and SearchApiAbstractService.

Class

SearchApiServiceInterface
Interface defining the methods search services have to implement.

Code

public function query(SearchApiIndex $index, $options = array());