Author: Aurelien FOUCRET (aurelien.foucret@smile.fr)
コード例 #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
 /**
  * {@inheritDoc}
  */
 public function getBatchIndexingSize()
 {
     return $this->indexSettings->getBatchIndexingSize();
 }