You are here

public function StandardSolrCloudConnector::getSpellcheckQuery in Search API Solr 8.3

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

Creates a new Solarium suggester query.

Return value

\Solarium\QueryType\Spellcheck\Query The Spellcheck query.

Overrides SolrConnectorPluginBase::getSpellcheckQuery

File

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

Class

StandardSolrCloudConnector
Standard Solr Cloud connector.

Namespace

Drupal\search_api_solr\Plugin\SolrConnector

Code

public function getSpellcheckQuery() {
  $query = parent::getSpellcheckQuery();
  return $query
    ->setDistrib(TRUE);
}