public function SearchBuilder::__construct in Elasticsearch Connector 8.2
Same name and namespace in other branches
- 8.7 src/ElasticSearch/Parameters/Builder/SearchBuilder.php \Drupal\elasticsearch_connector\ElasticSearch\Parameters\Builder\SearchBuilder::__construct()
- 8.5 src/ElasticSearch/Parameters/Builder/SearchBuilder.php \Drupal\elasticsearch_connector\ElasticSearch\Parameters\Builder\SearchBuilder::__construct()
- 8.6 src/ElasticSearch/Parameters/Builder/SearchBuilder.php \Drupal\elasticsearch_connector\ElasticSearch\Parameters\Builder\SearchBuilder::__construct()
ParameterBuilder constructor.
Parameters
\Drupal\search_api\Query\QueryInterface $query:
File
- src/
ElasticSearch/ Parameters/ Builder/ SearchBuilder.php, line 38
Class
- SearchBuilder
- Class SearchBuilder.
Namespace
Drupal\elasticsearch_connector\ElasticSearch\Parameters\BuilderCode
public function __construct(QueryInterface $query) {
$this->query = $query;
$this->index = $query
->getIndex();
}