Added support for the bucket aggregation. (#797)

Signed-off-by: dblock <[email protected]>
Co-authored-by: mckirk <[email protected]>
This commit is contained in:
Daniel (dB.) Doubrovkine
2024-08-15 07:49:58 -07:00
committed by GitHub
co-authored by mckirk
parent be56ae82b8
commit def00facfb
3 changed files with 17 additions and 0 deletions
@@ -309,6 +309,18 @@ def test_variable_width_histogram_aggregation() -> None:
assert {"variable_width_histogram": {"buckets": 2, "field": "price"}} == a.to_dict()
def test_multi_terms_aggregation() -> None:
a = aggs.MultiTerms(terms=[{"field": "tags"}, {"field": "author.row"}])
assert {
"multi_terms": {
"terms": [
{"field": "tags"},
{"field": "author.row"},
]
}
} == a.to_dict()
def test_median_absolute_deviation_aggregation() -> None:
a = aggs.MedianAbsoluteDeviation(field="rating")