public function SolrConnectorPluginBase::getSuggesterQuery in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getSuggesterQuery()
- 4.x 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
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 707
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function getSuggesterQuery() {
$this
->connect();
return $this->solr
->createSuggester();
}