public function getConfiguration()
    {
        $indexes = [];
        foreach ($this->configArray as $config) {
            $types = $this->getTypes($config);
            $index = new IndexConfig($config['name'], $types, [
                'elasticSearchName' => $config['elasticsearch_name'],
                'settings' => $config['settings'],
                'useAlias' => $config['use_alias'],
            ]);

            $indexes[$config['name']] = $index;
        }

        return $indexes;
    }