You are here

public function SolrConnectorInterface::search in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::search()
  2. 8 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::search()
  3. 8.2 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::search()

Executes a search query and returns the raw response.

Parameters

\Solarium\QueryType\Select\Query\Query $query: The Solarium select query object.

\Solarium\Core\Client\Endpoint|null $endpoint: (optional) The Solarium endpoint object.

Return value

\Solarium\Core\Client\Response The Solarium response object.

Throws

\Drupal\search_api_solr\SearchApiSolrException

1 method overrides SolrConnectorInterface::search()
SolrConnectorPluginBase::search in src/SolrConnector/SolrConnectorPluginBase.php
Executes a search query and returns the raw response.

File

src/SolrConnectorInterface.php, line 390

Class

SolrConnectorInterface
The Solr connector interface.

Namespace

Drupal\search_api_solr

Code

public function search(Query $query, ?Endpoint $endpoint = NULL);