You are here

public function SearchApiSolrAcquiaConnector::getExtractQuery in Acquia Search 2.x

Same name and namespace in other branches
  1. 3.x src/Plugin/SolrConnector/SearchApiSolrAcquiaConnector.php \Drupal\acquia_search\Plugin\SolrConnector\SearchApiSolrAcquiaConnector::getExtractQuery()

Creates a new Solarium extract query.

Return value

\Solarium\QueryType\Extract\Query The Extract query.

Overrides SolrConnectorPluginBase::getExtractQuery

File

src/Plugin/SolrConnector/SearchApiSolrAcquiaConnector.php, line 247

Class

SearchApiSolrAcquiaConnector
Acquia Search Plugin for Search API Solr.

Namespace

Drupal\acquia_search\Plugin\SolrConnector

Code

public function getExtractQuery() {
  $this
    ->connect();
  $query = $this->solr
    ->createExtract();
  $query
    ->setHandler('extract/tika');
  return $query;
}