We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7f85a5 commit bbee5f5Copy full SHA for bbee5f5
elasticsearch_dsl/aggs.py
@@ -329,6 +329,10 @@ class GeoBounds(Agg):
329
name = "geo_bounds"
330
331
332
+class GeoLine(Agg):
333
+ name = "geo_line"
334
+
335
336
class Max(Agg):
337
name = "max"
338
tests/test_aggs.py
@@ -334,6 +334,17 @@ def test_t_test_aggregation():
} == a.to_dict()
+def test_geo_line_aggregation():
+ a = aggs.GeoLine(point={"field": "centroid"}, sort={"field": "date"})
339
340
+ assert {
341
+ "geo_line": {
342
+ "point": {"field": "centroid"},
343
+ "sort": {"field": "date"},
344
+ },
345
+ } == a.to_dict()
346
347
348
def test_inference_aggregation():
349
a = aggs.Inference(model_id="model-id", buckets_path={"agg_name": "agg_name"})
350
assert {
0 commit comments