Geohash_grid aggregation in opensearch

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]"

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

Hello,

Opensearch is a different tool as it includes changes made by AWS, it is not supported here, you need to check with an Opensearch community forum.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.