Open
Description
🐛 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.