You are here

public function SearchApiSolrConnectionInterface::search in Search API Solr 7

Executes a search on the Solr server.

Parameters

string|null $query: (optional) The raw query string. Defaults to an empty query.

array $params: (optional) Key / value pairs for other query parameters (see Solr documentation). Use arrays for parameter keys used more than once (e.g., facet.field).

string $method: The HTTP method to use. Must be either "GET", "POST" or "AUTO". Defaults to "GET".

Return value

object A response object.

Throws

SearchApiException If an error occurs during the service call.

1 method overrides SearchApiSolrConnectionInterface::search()
SearchApiSolrConnection::search in includes/solr_connection.inc
Executes a search on the Solr server.

File

includes/solr_connection.interface.inc, line 299

Class

SearchApiSolrConnectionInterface
The interface for a Solr connection class.

Code

public function search($query = NULL, array $params = array(), $method = 'GET');