getIndicesConfig() public method

Returns the list of the available indices declared in elasticsuite_indices.xml.
public getIndicesConfig ( ) : array
return array
コード例 #1
0
ファイル: BaseConfig.php プロジェクト: smile-sa/elasticsuite
 /**
  * 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;
 }
コード例 #2
0
 /**
  * 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;
 }