private function initIndices(SearchableInterface $searchableModel)
    {
        $indexNames = $searchableModel->getIndices();

        return \array_map(function ($indexName) {
            if ($this->env !== null) {
                $indexName = $this->env . '_' . $indexName;
            }

            return $this->initIndex($indexName);
        }, $indexNames);
    }
private function initIndices(SearchableInterface $searchableModel)
    {
        $indexNames = $searchableModel->getIndices();

        return \array_map(function ($indexName) {
            if ($this->env !== null) {
                $indexName = $this->env . '_' . $indexName;
            }

            return $this->initIndex($indexName);
        }, $indexNames);
    }
private function initIndices ( SearchableInterface $ searchableModel ) { $ indexNames = $ searchableModel -> getIndices ( ) ; return \ array_map ( function ( $ indexName ) { if ( $ this -> env !== null ) { $ indexName = $ this -> env . '_' . $ indexName ; } return $ this -> initIndex ( $ indexName ) ; } , $ indexNames ) ; }
Initializes indices for the given SearchableModel.

@param SearchableInterface $searchableModel

@return Index[]
Initializes indices for the given SearchableModel .