private function addAggregationFilters()
    {
        foreach ($this->_data as $requestName => $requestConfig) {
            if (isset($requestConfig['aggregations'])) {
                $aggregations = [];

                foreach ($requestConfig['aggregations'] as $aggName => $aggConfig) {
                    $aggregations[$aggName] = $this->replaceAggregationFilter($aggConfig);
                }

                $this->_data[$requestName]['aggregations'] = $aggregations;
            }
        }
    }
private function addAggregationFilters()
    {
        foreach ($this->_data as $requestName => $requestConfig) {
            if (isset($requestConfig['aggregations'])) {
                $aggregations = [];

                foreach ($requestConfig['aggregations'] as $aggName => $aggConfig) {
                    $aggregations[$aggName] = $this->replaceAggregationFilter($aggConfig);
                }

                $this->_data[$requestName]['aggregations'] = $aggregations;
            }
        }
    }
private function addAggregationFilters ( ) { foreach ( $ this -> _data as $ requestName => $ requestConfig ) { if ( isset ( $ requestConfig [ 'aggregations' ] ) ) { $ aggregations = [ ] ; foreach ( $ requestConfig [ 'aggregations' ] as $ aggName => $ aggConfig ) { $ aggregations [ $ aggName ] = $ this -> replaceAggregationFilter ( $ aggConfig ) ; } $ this -> _data [ $ requestName ] [ 'aggregations' ] = $ aggregations ; } } }
Append the aggregation filters to search requests configuration.

@return BaseConfig
Append the aggregation filters to search requests configuration .