use of com.enonic.xp.query.aggregation.AggregationQueries in project xp by enonic.
the class QueryAggregationParams method addSubAggregations.
private void addSubAggregations(final BucketAggregationQuery.Builder aggregationQuery, final Map<String, Object> aggregationQueryMap) {
if (aggregationQueryMap.containsKey("aggregations")) {
final Map<String, Object> aggregationsMap = (Map<String, Object>) aggregationQueryMap.get("aggregations");
final AggregationQueries aggregation = getAggregations(aggregationsMap);
aggregationQuery.addSubQueries(aggregation.getSet());
}
}
Aggregations