You are here

public function SearchApiElasticsearchIndex::getElasticsearchIndex in Search API Elasticsearch 7.2

Get Elasticsearch index using Search API index machine name as alias.

Return value

Index

1 call to SearchApiElasticsearchIndex::getElasticsearchIndex()
SearchApiElasticsearchIndex::updateFields in includes/SearchApiElasticsearchIndex.inc
Update fields on an Elasticsearch Index.

File

includes/SearchApiElasticsearchIndex.inc, line 153

Class

SearchApiElasticsearchIndex

Code

public function getElasticsearchIndex() {
  return $this->search_api_service
    ->getClient()
    ->getIndex($this->search_api_index->machine_name);
}