We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f091a23 commit dc5a835Copy full SHA for dc5a835
elasticsearch_dsl/aggs.py
@@ -209,6 +209,10 @@ class GeohashGrid(Bucket):
209
name = "geohash_grid"
210
211
212
+class GeohexGrid(Bucket):
213
+ name = "geohex_grid"
214
+
215
216
class GeotileGrid(Bucket):
217
name = "geotile_grid"
218
tests/test_aggs.py
@@ -262,6 +262,12 @@ def test_geohash_grid_aggregation():
262
assert {"geohash_grid": {"field": "centroid", "precision": 3}} == a.to_dict()
263
264
265
+def test_geohex_grid_aggregation():
266
+ a = aggs.GeohexGrid(**{"field": "centroid", "precision": 3})
267
268
+ assert {"geohex_grid": {"field": "centroid", "precision": 3}} == a.to_dict()
269
270
271
def test_geotile_grid_aggregation():
272
a = aggs.GeotileGrid(**{"field": "centroid", "precision": 3})
273
0 commit comments