Hello Elasticsearch,
I would like to get some clarification on the possibilities to use a geo_shape point type for a geohash aggregation query?
When I use the location field, i.e. a geo_point field type, all is working well:
GET company/_search
{
"query": {"match_all": {}},
"aggs": {
"filtered_geohash": {
"geohash_grid": {
"field": "location",
"precision": 2
}
}
},
"size": 0
}
When I use a geo_shape field type where all documents are set to POINT, in the above query, i get an exception as a result:
{
"type": "illegal_argument_exception",
"reason": "Fielddata is not supported on field [geometry] of type [geo_shape]"
}
The geohash grid aggregation example uses a geo_point field. But would like to get clarification on whether it is possible to use geo_shape type for geohash grid aggregations?
Best Regards,
Edwin