public function Query::__construct in Search API Solr 8
Same name and namespace in other branches
- 8.3 src/Solarium/Autocomplete/Query.php \Drupal\search_api_solr\Solarium\Autocomplete\Query::__construct()
- 8.2 src/Solarium/Autocomplete/Query.php \Drupal\search_api_solr\Solarium\Autocomplete\Query::__construct()
- 4.x src/Solarium/Autocomplete/Query.php \Drupal\search_api_solr\Solarium\Autocomplete\Query::__construct()
Constructs a Query object.
File
- src/
Solarium/ Autocomplete/ Query.php, line 40
Class
- Query
- Autocomplete query.
Namespace
Drupal\search_api_solr\Solarium\AutocompleteCode
public function __construct($options = NULL) {
$this->componentTypes = [
ComponentAwareQueryInterface::COMPONENT_SPELLCHECK => Spellcheck::class,
ComponentAwareQueryInterface::COMPONENT_SUGGESTER => Suggester::class,
ComponentAwareQueryInterface::COMPONENT_TERMS => Terms::class,
];
parent::__construct($options);
}