Skip to content

Missing filter aggregation #912

Closed
Closed
@ixixix-001

Description

@ixixix-001

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SpecificationRelated to the API spec used to generate client codeCategory: QuestionNot an issue but a question. May lead to enhancing docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions