You are here

public function SearchApiElasticsearchQuery::__construct in Search API Elasticsearch 7.2

SearchApiElasticsearchQuery constructor.

Parameters

SearchApiQueryInterface $query:

SearchApiElasticsearchService $service:

File

includes/SearchApiElasticsearchQuery.inc, line 44

Class

SearchApiElasticsearchQuery
@file

Code

public function __construct(SearchApiQueryInterface $query, SearchApiElasticsearchService $service) {
  $this->search_api_query = $query;
  $this->search_api_service = $service;
  $this->index_fields = $query
    ->getIndex()
    ->getFields();
  $this->query_options = $query
    ->getOptions();
}