You are here

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

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

Executes an extract query.

Parameters

\Solarium\Core\Query\QueryInterface|\Solarium\QueryType\Extract\Query $query: The Solarium extract query object.

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

Return value

\Solarium\QueryType\Extract\Result The Solarium extract result object.

Throws

\Drupal\search_api_solr\SearchApiSolrException

1 method overrides SolrConnectorInterface::extract()
SolrConnectorPluginBase::extract in src/SolrConnector/SolrConnectorPluginBase.php
Executes an extract query.

File

src/SolrConnectorInterface.php, line 488

Class

SolrConnectorInterface
The Solr connector interface.

Namespace

Drupal\search_api_solr

Code

public function extract(QueryInterface $query, ?Endpoint $endpoint = NULL);