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.