You are here

public function SearchApiElasticsearchService::addIndex in Search API Elasticsearch 7.2

@inheritdoc

Overrides SearchApiAbstractService::addIndex

File

includes/SearchApiElasticsearchService.inc, line 445
Provides Elasticsearch service for Search API.

Class

SearchApiElasticsearchService
@file Provides Elasticsearch service for Search API.

Code

public function addIndex(SearchApiIndex $index) {
  $new_index = new SearchApiElasticsearchIndex($index, $this);
  $new_index
    ->create();
  $new_index
    ->addAlias();
}