You are here

public function SolrConnectorPluginBase::getTermsQuery in Search API Solr 8.3

Same name and namespace in other branches
  1. 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getTermsQuery()
  2. 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getTermsQuery()
  3. 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getTermsQuery()

Creates a new Solarium terms query.

Return value

\Solarium\QueryType\Terms\Query The Terms query.

Overrides SolrConnectorInterface::getTermsQuery

1 call to SolrConnectorPluginBase::getTermsQuery()
StandardSolrCloudConnector::getTermsQuery in src/Plugin/SolrConnector/StandardSolrCloudConnector.php
Creates a new Solarium terms query.
1 method overrides SolrConnectorPluginBase::getTermsQuery()
StandardSolrCloudConnector::getTermsQuery in src/Plugin/SolrConnector/StandardSolrCloudConnector.php
Creates a new Solarium terms query.

File

src/SolrConnector/SolrConnectorPluginBase.php, line 716

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getTermsQuery() {
  $this
    ->connect();
  return $this->solr
    ->createTerms();
}