You are here

public function SearchApiDummyService::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.

Overrides SearchApiServiceInterface::query

File

tests/search_api_test_2.module, line 126
Provides a second test service and server for testing Search API.

Class

SearchApiDummyService
Dummy service for testing.

Code

public function query(SearchApiIndex $index, $options = array()) {
  throw new SearchApiException("The dummy service doesn't support queries");
}