private FilterAggregationBuilder buildWhereAggregations ( EntityMetadata entityMetadata , QueryBuilder filter ) { filter = filter != null ? filter : QueryBuilders . matchAllQuery ( ) ; FilterAggregationBuilder filteragg = AggregationBuilders . filter ( ESConstants . AGGREGATION_NAME ) . filter ( filter ) ; return filteragg ; }
Builds the where aggregations .