-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty geo_point being treated as [-180, -90]? #23579
Labels
Comments
nknize
added
the
:Analytics/Geo
Indexing, search aggregations of geo points and shapes
label
Mar 14, 2017
I believe this is a bug in |
imotov
added a commit
to imotov/elasticsearch
that referenced
this issue
May 4, 2018
Adds verification that geohashes are not empty and contain only valid characters. Closes elastic#23579
imotov
added a commit
that referenced
this issue
May 7, 2018
Adds verification that geohashes are not empty and contain only valid characters. It fixes the issue when en empty geohash is treated as [-180, -90] and geohashes with non-geohash character are getting resolved into invalid coordinates. Closes #23579
imotov
added a commit
that referenced
this issue
May 7, 2018
Adds verification that geohashes are not empty and contain only valid characters. It fixes the issue when en empty geohash is treated as [-180, -90] and geohashes with non-geohash character are getting resolved into invalid coordinates. Closes #23579
colings86
pushed a commit
that referenced
this issue
May 8, 2018
Adds verification that geohashes are not empty and contain only valid characters. It fixes the issue when en empty geohash is treated as [-180, -90] and geohashes with non-geohash character are getting resolved into invalid coordinates. Closes #23579
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm migrating an ES cluster from v1.7.5 to v5.1.2 and noticed that in v5.1.2 empy geo_point fields are being treated as if they were valid points with coordinates [-180, -90] within geo_xxx queries (used to work fine in v1.7.5). I'm trying to simply get the geo_bounds of my geo_point field to determine the area it covers. Previously I used "max" and "min" aggs on each coordinate (lat and lon) to accomplish this (this is just for our own ease of implementation) and now this is not even working (returns "null" for every coordinates max and min).
Has anyone experienced this? How do I get the geo_bounds without the empty points being considered? I've tried "bool" > "must" > "exists" without success.
Please see below some examples of what I just reported.
Mapping
Data Samples
Query
Query result
And I can confirm I have no geo_point in the [-180, -90] coordinate.
Thank you very much.
The text was updated successfully, but these errors were encountered: