Query Exception: Geo Points


(Michael Young) #1

Typically if you query an index using a fielded query that doesn't exist, Elasticsearch will simply return 0 hits. This is our desired behavior. However this doesn't seem to be the case if your query is a geospatial query.

If I try to query against a geo_point field that doesn't exist, I get a QueryParsingException saying that it failed to find the geo_point field. Why doesn't this return 0 hits for those indexes without the field like other queries do?

Is it a bug or a known issue?


(Emptyemail) #2

I've seen this behavior for a while, I use an exists filter to make sure the fields exists, it is cached and is much faster than running the geo filters on all the data.


(system) #3