You are here

public function SolrConnectorPluginBase::getSpellcheckQuery in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getSpellcheckQuery()
  2. 8.2 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

1 call to SolrConnectorPluginBase::getSpellcheckQuery()
StandardSolrCloudConnector::getSpellcheckQuery in src/Plugin/SolrConnector/StandardSolrCloudConnector.php
Creates a new Solarium suggester query.
1 method overrides SolrConnectorPluginBase::getSpellcheckQuery()
StandardSolrCloudConnector::getSpellcheckQuery in src/Plugin/SolrConnector/StandardSolrCloudConnector.php
Creates a new Solarium suggester query.

File

src/SolrConnector/SolrConnectorPluginBase.php, line 796

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();
}