public function StandardSolrCloudConnector::getAutocompleteQuery in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 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 346
Class
- StandardSolrCloudConnector
- Standard Solr Cloud connector.
Namespace
Drupal\search_api_solr\Plugin\SolrConnectorCode
public function getAutocompleteQuery() {
$query = parent::getAutocompleteQuery();
return $query
->setDistrib($this->configuration['distrib'] ?? TRUE);
}