Closed
Description
Java API client version
8.15.2
Java version
21
Elasticsearch Version
8.15.2
Problem description
Hi, there is no way to define a filter aggregation (not "filters").
Seems the class "FilterAggregation" is not generated at all.
And: The code for method "filter()" in class "Aggregation" returns a Query object instead of an aggregation variant.
public Query filter() { return TaggedUnionUtils.get(this, Kind.Filter); }
Was this an intentional decision to implement it this way (as a Query-Object) ?
Otherwise it would be nice to add the class "Filteraggregation" in the generator and change the return types from Query to "FilterAggregation".