public function StandardSolrCloudConnector::getAutocompleteQuery 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::getAutocompleteQuery()
Creates a new Solarium autocomplete query.
Return value
\Drupal\search_api_solr\Solarium\Autocomplete\Query The Autocomplete query.
Overrides SolrConnectorPluginBase::getAutocompleteQuery
File
- src/
Plugin/ SolrConnector/ StandardSolrCloudConnector.php, line 263
Class
- StandardSolrCloudConnector
- Standard Solr Cloud connector.
Namespace
Drupal\search_api_solr\Plugin\SolrConnectorCode
public function getAutocompleteQuery() {
$query = parent::getAutocompleteQuery();
return $query
->setDistrib(TRUE);
}