Smile\ElasticsuiteCore\Index\IndexOperation::getIndexByName PHP Method

getIndexByName() public method

{@inheritDoc}
public getIndexByName ( $indexIdentifier, $store )
    public function getIndexByName($indexIdentifier, $store)
    {
        $indexAlias = $this->indexSettings->getIndexAliasFromIdentifier($indexIdentifier, $store);
        if (!isset($this->indicesByIdentifier[$indexAlias])) {
            if (!$this->indexExists($indexIdentifier, $store)) {
                throw new \LogicException("{$indexIdentifier} index does not exist yet. Make sure everything is reindexed");
            }
            $this->initIndex($indexIdentifier, $store, true);
        }
        return $this->indicesByIdentifier[$indexAlias];
    }