public function StandardSolrCloudConnector::getTermsQuery in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/Plugin/SolrConnector/StandardSolrCloudConnector.php \Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector::getTermsQuery()
Creates a new Solarium terms query.
Return value
\Solarium\QueryType\Terms\Query The Terms query.
Overrides SolrConnectorPluginBase::getTermsQuery
File
- src/
Plugin/ SolrConnector/ StandardSolrCloudConnector.php, line 322
Class
- StandardSolrCloudConnector
- Standard Solr Cloud connector.
Namespace
Drupal\search_api_solr\Plugin\SolrConnectorCode
public function getTermsQuery() {
$query = parent::getTermsQuery();
return $query
->setDistrib($this->configuration['distrib'] ?? TRUE);
}