You are here

public function StandardSolrCloudConnector::getSuggesterQuery in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/SolrConnector/StandardSolrCloudConnector.php \Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector::getSuggesterQuery()

Creates a new Solarium suggester query.

Return value

\Solarium\QueryType\Suggester\Query The Suggester query.

Overrides SolrConnectorPluginBase::getSuggesterQuery

File

src/Plugin/SolrConnector/StandardSolrCloudConnector.php, line 338

Class

StandardSolrCloudConnector
Standard Solr Cloud connector.

Namespace

Drupal\search_api_solr\Plugin\SolrConnector

Code

public function getSuggesterQuery() {
  $query = parent::getSuggesterQuery();
  return $query
    ->setDistrib($this->configuration['distrib'] ?? TRUE);
}