I have following mapping in my elasticsearch:
{
"mappings": {
"event": {
"_all": { "enabled": false },
"properties": {
"type": { "type": "string", "index": "not_analyzed"},
"id": { "type": "string"},
"location": { "type": "geo_point"}
}
}
}
}
What I want to do is query for all records that are localized inside map area defined by single geohash. I am aware of geohash cell query which would work perfectly in my example, but unfortunatelly require geo_point field to be indexed in with geohash_prefix option set to true which is deprecated in elasticearch 2.4.
What is the correct way to do that in latest elasticsearch version? I can't find it anywhere in the documentation.