private function getAggregations(RequestInterface $request)
    {
        $aggregations = [];

        if ($request->getAggregation()) {
            $aggregations = $this->aggregationBuilder->buildAggregations($request->getAggregation());
        }

        return $aggregations;
    }
private function getAggregations(RequestInterface $request)
    {
        $aggregations = [];

        if ($request->getAggregation()) {
            $aggregations = $this->aggregationBuilder->buildAggregations($request->getAggregation());
        }

        return $aggregations;
    }
private function getAggregations ( RequestInterface $ request ) { $ aggregations = [ ] ; if ( $ request -> getAggregation ( ) ) { $ aggregations = $ this -> aggregationBuilder -> buildAggregations ( $ request -> getAggregation ( ) ) ; } return $ aggregations ; }
Extract and build aggregations of the search request.

@param RequestInterface $request Search request.

@return array
Extract and build aggregations of the search request .