protected function SearchApiElasticsearchIndex::getRealIndex in Search API Elasticsearch 7.2
Get Elasticsearch index.
Parameters
string $name:
Return value
Index
7 calls to SearchApiElasticsearchIndex::getRealIndex()
- SearchApiElasticsearchIndex::add in includes/
SearchApiElasticsearchIndex.inc - Add an Elasticsearch index, but don't expose it to Drupal via alias.
- SearchApiElasticsearchIndex::addAlias in includes/
SearchApiElasticsearchIndex.inc - Map Elasticsearch alias to Search API index machine name.
- SearchApiElasticsearchIndex::create in includes/
SearchApiElasticsearchIndex.inc - Create Elasticsearch a new index.
- SearchApiElasticsearchIndex::delete in includes/
SearchApiElasticsearchIndex.inc - Delete Elasticsearch index.
- SearchApiElasticsearchIndex::deleteAllItems in includes/
SearchApiElasticsearchIndex.inc - Delete all documents in an Elasticsearch index.
File
- includes/
SearchApiElasticsearchIndex.inc, line 264
Class
Code
protected function getRealIndex($name = null) {
$index_name = isset($name) ? $name : $this
->getCurrentIndexName();
return $this->search_api_service
->getClient()
->getIndex($index_name);
}