You are here

public function SearchApiElasticsearchIndex::add in Search API Elasticsearch 7.2

Add an Elasticsearch index, but don't expose it to Drupal via alias.

File

includes/SearchApiElasticsearchIndex.inc, line 80

Class

SearchApiElasticsearchIndex

Code

public function add() {
  $name = $this
    ->getNewIndexName();
  $index = $this
    ->getRealIndex($name);
  $index
    ->create($this->search_api_index->options['search_api_elasticsearch'] ?: [], TRUE);
}