You are here

public function SolrConnectorPluginBase::getSuggesterQuery 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::getSuggesterQuery()
  2. 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getSuggesterQuery()

Creates a new Solarium suggester query.

Return value

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

Overrides SolrConnectorInterface::getSuggesterQuery

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

File

src/SolrConnector/SolrConnectorPluginBase.php, line 804

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getSuggesterQuery() {
  $this
    ->connect();
  return $this->solr
    ->createSuggester();
}