public function buildAggregations(ContainerConfigurationInterface $containerConfig, array $aggregations, array $filters)
    {
        $buckets = [];

        foreach ($aggregations as $aggParams) {
            $buckets[] = is_object($aggParams) ? $aggParams : $this->buildAggregation($containerConfig, $filters, $aggParams);
        }

        return array_filter($buckets);
    }
public function buildAggregations(ContainerConfigurationInterface $containerConfig, array $aggregations, array $filters)
    {
        $buckets = [];

        foreach ($aggregations as $aggParams) {
            $buckets[] = is_object($aggParams) ? $aggParams : $this->buildAggregation($containerConfig, $filters, $aggParams);
        }

        return array_filter($buckets);
    }
public function buildAggregations ( ContainerConfigurationInterface $ containerConfig , array $ aggregations , array $ filters ) { $ buckets = [ ] ; foreach ( $ aggregations as $ aggParams ) { $ buckets [ ] = is_object ( $ aggParams ) ? $ aggParams : $ this -> buildAggregation ( $ containerConfig , $ filters , $ aggParams ) ; } return array_filter ( $ buckets ) ; }
Build the list of buckets from the mapping.

@param ContainerConfigurationInterface $containerConfig Search request configuration
@param array                           $aggregations    Facet definitions.
@param array                           $filters         Facet filters to be added to buckets.

@return BucketInterface[]
Build the list of buckets from the mapping .