Java api - filters


(염경훈) #1

I have confirmed new fixes in version 5.1 about filters()

Below is version 2.3

public static FiltersAggregationBuilder filters(String name) {
return new FiltersAggregationBuilder(name);
}

and now (version 5.1)

public static FiltersAggregationBuilder filters(String name, KeyedFilter... filters) {
return new FiltersAggregationBuilder(name, filters);
}

public static FiltersAggregationBuilder filters(String name, QueryBuilder... filters) {
return new FiltersAggregationBuilder(name, filters);
}

Previously I used the following query, how do I change it?

AggregationBuilder aggregation = AggregationBuilders.filters("status_agg").filter("status", QueryBuilders.boolQuery().must(QueryBuilders.boolQuery())));

Does the document exist? I can not find it.


(David Pilato) #2

Here is the documentation:


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.