Hi.
I'm gettin this error when trying "geohash_grid" aggregation in java opensearch api. Seems opensearch doesn't have geohash_grid aggregation type, So what can be the analog?
"aggs": {
"filter_agg": {
"filter": {
"geo_bounding_box": {
"ignore_unmapped": true,
"location": {
"top_left": {
"lat": 90,
"lon": -180
},
"bottom_right": {
"lat": -90,
"lon": 180
}
}
}
},
"aggs": {
"2": {
"geohash_grid": {
"field": "location",
"precision": 2
},
"aggs": {
"3": {
"geo_centroid": {
"field": "location"
}
}
}
}
}
}
},
So when trying this query, I'm getting this error:
"Unknown aggregation type [geohash_grid]"