Smile\ElasticsuiteCore\Search\Request\ContainerConfiguration\BaseConfig::addMappings PHP Method

addMappings() private method

Append the type mapping to search requests configuration.
private addMappings ( ) : BaseConfig
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;
    }