Added support for the bucket aggregation. (#797)
Signed-off-by: dblock <[email protected]> Co-authored-by: mckirk <[email protected]>
This commit is contained in:
co-authored by
mckirk
parent
be56ae82b8
commit
def00facfb
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user