Skip to content

Commit

Permalink
Revert "create es dsl builder class for geotile_grid agg, re #11628"
Browse files Browse the repository at this point in the history
This reverts commit 45947d2.

revert
  • Loading branch information
whatisgalen committed Nov 18, 2024
1 parent 45947d2 commit af6bc7a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions arches/app/search/elasticsearch_dsl_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,21 +559,6 @@ def __init__(self, **kwargs):
self.agg[self.name][self.type]["precision"] = self.precision


class GeoTileGridAgg(Aggregation):
"""
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geotilegrid-aggregation.html
"""

def __init__(self, **kwargs):
self.precision = kwargs.get("precision", 5)
self.size = kwargs.get("size", 10000)
super(GeoTileGridAgg, self).__init__(type="geotile_grid", **kwargs)
self.agg[self.name][self.type]["precision"] = self.precision
self.agg[self.name][self.type]["field"] = self.field
self.agg[self.name][self.type]["size"] = self.size


class GeoBoundsAgg(Aggregation):
"""
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html
Expand Down

0 comments on commit af6bc7a

Please sign in to comment.