public function StandardSolrCloudConnector::getSuggesterQuery in Search API Solr 8.3
Same name and namespace in other branches
- 4.x src/Plugin/SolrConnector/StandardSolrCloudConnector.php \Drupal\search_api_solr\Plugin\SolrConnector\StandardSolrCloudConnector::getSuggesterQuery()
Creates a new Solarium suggester query.
Return value
\Solarium\QueryType\Suggester\Query The Suggester query.
Overrides SolrConnectorPluginBase::getSuggesterQuery
File
- src/
Plugin/ SolrConnector/ StandardSolrCloudConnector.php, line 255
Class
- StandardSolrCloudConnector
- Standard Solr Cloud connector.
Namespace
Drupal\search_api_solr\Plugin\SolrConnectorCode
public function getSuggesterQuery() {
$query = parent::getSuggesterQuery();
return $query
->setDistrib(TRUE);
}