You are here

public function SearchApiElasticsearchConnectorMissing::search in Elasticsearch Connector 7

Same name and namespace in other branches
  1. 7.5 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnectorMissing::search()
  2. 7.2 modules/elasticsearch_connector_search_api/service.inc \SearchApiElasticsearchConnectorMissing::search()

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.

Overrides SearchApiServiceInterface::search

File

modules/elasticsearch_connector_search_api/service.inc, line 31
Provides a Elasticsearch-based service class for the Search API using Elasticsearch Connector module.

Class

SearchApiElasticsearchConnectorMissing
Dummy search service for when the ElasticSearch library isn't available.

Code

public function search(SearchApiQueryInterface $query) {
  return array();
}