getIndicesConfig() public méthode

Returns the list of the available indices declared in elasticsuite_indices.xml.
public getIndicesConfig ( ) : array
Résultat array
Exemple #1
0
 /**
  * Append the type mapping to search requests configuration.
  *
  * @return BaseConfig
  */
 private function addMappings()
 {
     $indicesSettings = $this->indexSettings->getIndicesConfig();
     foreach ($this->_data as $requestName => $requestConfig) {
         $index = $requestConfig['index'];
         $type = $requestConfig['type'];
         $this->_data[$requestName]['mapping'] = $indicesSettings[$index]['types'][$type]->getMapping();
     }
     return $this;
 }
 /**
  * Instanciate the index operation manager.
  *
  * @param ObjectManagerInterface $objectManager Object manager.
  * @param ClientFactoryInterface $clientFactory ES client factory.
  * @param IndexSettingsInterface $indexSettings ES settings.
  * @param LoggerInterface        $logger        Logger access.
  */
 public function __construct(ObjectManagerInterface $objectManager, ClientFactoryInterface $clientFactory, IndexSettingsInterface $indexSettings, LoggerInterface $logger)
 {
     $this->objectManager = $objectManager;
     $this->client = $clientFactory->createClient();
     $this->indexSettings = $indexSettings;
     $this->indicesConfiguration = $indexSettings->getIndicesConfig();
     $this->logger = $logger;
 }