Skip to content

Bug in CompositeAggregation.sources #1696

Open
@swallez

Description

@swallez

🐛 Wrong type

CompositeAggregation.sources contains a list of subaggregations. The are represented using CompositeAggregationSource that holds TermsAggregation, HistogramAggregation, etc.

Reusing aggregation types doesn't work because "Although similar, the terms value source doesn’t support the same set of parameters as the terms aggregation". These differences that make it incompatible with TermsAggregation.

Additionally, CompositeAggregation.source should be Array<SingleKeyDictionary<string, CompositeAggregationSource>> (and not Dictionary) and CompositeAggregationSource should be a container.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions