public function SearchApiElasticsearchQuery::search in Search API Elasticsearch 7.2
Execute a search.
Return value
array
File
- includes/
SearchApiElasticsearchQuery.inc, line 110
Class
Code
public function search() {
$this
->build();
$index = new SearchApiElasticsearchIndex($this->search_api_query
->getIndex(), $this->search_api_service);
$elasticsearch_index = $index
->getElasticsearchIndex();
$result_set = $elasticsearch_index
->search($this->query);
return $this
->parseResults($result_set);
}