public function SearchApiServiceInterface::search in Search API 7
Executes a search on the server represented by this object.
Parameters
$query: The SearchApiQueryInterface object to execute.
Return value
array An associative array containing the search results, as required by SearchApiQueryInterface::execute().
Throws
SearchApiException If an error prevented the search from completing.
3 methods override SearchApiServiceInterface::search()
- SearchApiDummyService::search in tests/
search_api_test_2.module - Executes a search on the server represented by this object.
- SearchApiFacetapiExampleService::search in contrib/
search_api_facetapi/ example_service.php - Executes a search on the server represented by this object.
- SearchApiTestService::search in tests/
search_api_test.module - Implements SearchApiServiceInterface::indexItems().
File
- includes/
service.inc, line 272 - Contains SearchApiServiceInterface and SearchApiAbstractService.
Class
- SearchApiServiceInterface
- Interface defining the methods search services have to implement.
Code
public function search(SearchApiQueryInterface $query);