public function SearchBuilder::__construct in Elasticsearch Connector 8.7
Same name and namespace in other branches
- 8.2 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: Search API Query object.
File
- src/
ElasticSearch/ Parameters/ Builder/ SearchBuilder.php, line 57
Class
- SearchBuilder
- Class SearchBuilder.
Namespace
Drupal\elasticsearch_connector\ElasticSearch\Parameters\BuilderCode
public function __construct(QueryInterface $query) {
$this->query = $query;
$this->index = $query
->getIndex();
$this->body = [];
}