Classes/Indexer/NodeIndexer.php
public function getIndex(): Index
    {
        $index = $this->searchClient->findIndex($this->getIndexName());
        $index->setSettingsKey($this->searchClient->getIndexName());

        return $index;
    }
public function getIndex(): Index
    {
        $index = $this->searchClient->findIndex($this->getIndexName());
        $index->setSettingsKey($this->searchClient->getIndexName());

        return $index;
    }
public function getIndex ( ) : Index { $ index = $ this -> searchClient -> findIndex ( $ this -> getIndexName ( ) ) ; $ index -> setSettingsKey ( $ this -> searchClient -> getIndexName ( ) ) ; return $ index ; }
Return the currently active index to be used for indexing

@return Index
@throws Exception
Return the currently active index to be used for indexing