public function SolrConnectorPluginBase::getSuggesterQuery in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 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
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 732
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();
}