Reputation: 11
currently we are in the process of migrating to spring boot 3 ,and since there aren't many migration guides and examples with alternatives to specific queries and aggregations:
What's the alternative to "FiltersAggregator.KeyedFilter(name, query)"? We are setting a AggregationsBuilders.filters() with multiple filters:
here is an example :
AggregationBuilder aggregation =
AggregationBuilders
.filters("agg",
new FiltersAggregator.KeyedFilter("men", QueryBuilders.termQuery("gender", "male")),
new FiltersAggregator.KeyedFilter("women", QueryBuilders.termQuery("gender", "female")));
Upvotes: 1
Views: 114