public function SearchApiElasticsearchIndex::addAlias in Search API Elasticsearch 7.2
Map Elasticsearch alias to Search API index machine name.
Parameters
null $alias:
File
- includes/
SearchApiElasticsearchIndex.inc, line 90
Class
Code
public function addAlias($alias = null) {
$new_alias = $alias ?: $this->search_api_index->machine_name;
$index = $this
->getRealIndex();
$index
->addAlias($new_alias);
}