You are here

public function SolrConnectorPluginBase::getSpellcheckQuery in Search API Solr 8.2

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

Creates a new Solarium suggester query.

Return value

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

Overrides SolrConnectorInterface::getSpellcheckQuery

File

src/SolrConnector/SolrConnectorPluginBase.php, line 699

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getSpellcheckQuery() {
  $this
    ->connect();
  return $this->solr
    ->createSpellcheck();
}