elasticsearch-query-builder icon indicating copy to clipboard operation
elasticsearch-query-builder copied to clipboard

Allow filter aggregation without nested aggregations

Open sventendo opened this issue 1 year ago • 1 comments

With is useful for getting only the basic doc_count value.

sventendo avatar Apr 03 '24 12:04 sventendo

You can have a complex filter for the aggregation but NOT care about aggregations within those filtered document and ONLY want a basic doc_count. But "aggs" can't be an empty array. This PR omits the "aggs" key altogether (like already done in "TermAggregation").

sventendo avatar Apr 03 '24 12:04 sventendo

Another great PR! thanks :)

AlexVanderbist avatar May 06 '24 08:05 AlexVanderbist