Alternative to FiltersAggregator.KeyedFilter in new Java Client

Hello there,

currently we are in the process of switching to the new Java API Client since Spring Boot 3 isn't supporting the old client anymore (yes you can just add the old client but we want to do it properly :slight_smile: )

Since there aren't that many migration guides and examples with alternatives to specific queries and aggregations:

Whats the alternative to "FiltersAggregator.KeyedFilter(name, query)"?

We are setting a AggregationsBuilders.filters() with multiple filter (old client):

AggregationsBuilders.filters("agg_name", 
new FiltersAggregator.KeyedFilter("name", QueryBuilders.boolQuery().must(query)),
...
);

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