private function getDatasources($indexName)
    {
        $config            = $this->indexSettings->getIndexConfig($indexName);
        $legacyDatasources = $config['datasources'] ?? [];

        $resolver = $this->dataSourceResolverFactory->create(['legacyDataSources' => [$indexName => $legacyDatasources]]);
        $sources  = $resolver->getDataSources($this->indexName);

        return $sources;
    }
private function getDatasources($indexName)
    {
        $config            = $this->indexSettings->getIndexConfig($indexName);
        $legacyDatasources = $config['datasources'] ?? [];

        $resolver = $this->dataSourceResolverFactory->create(['legacyDataSources' => [$indexName => $legacyDatasources]]);
        $sources  = $resolver->getDataSources($this->indexName);

        return $sources;
    }
private function getDatasources ( $ indexName ) { $ config = $ this -> indexSettings -> getIndexConfig ( $ indexName ) ; $ legacyDatasources = $ config [ 'datasources' ] ?? [ ] ; $ resolver = $ this -> dataSourceResolverFactory -> create ( [ 'legacyDataSources' => [ $ indexName => $ legacyDatasources ] ] ) ; $ sources = $ resolver -> getDataSources ( $ this -> indexName ) ; return $ sources ; }
Retrieve data sources of an index by name.

@deprecated

@param string $indexName The index name

@return \Smile\ElasticsuiteCore\Api\Index\DatasourceInterface[]
Retrieve data sources of an index by name .