public function StandardSolrCloudConnector::getSpellcheckQuery 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::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 330
Class
- StandardSolrCloudConnector
- Standard Solr Cloud connector.
Namespace
Drupal\search_api_solr\Plugin\SolrConnectorCode
public function getSpellcheckQuery() {
$query = parent::getSpellcheckQuery();
return $query
->setDistrib($this->configuration['distrib'] ?? TRUE);
}