-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Geo_polygon queries sometimes matches points outside polygon in 2.4.x #22033
Comments
@nknize please could you take a look |
I'm on it... |
It seems to be the point |
I also have the same issue, How to solve it; |
Not wanting to jump on your thread, but I experience this in ES5 5.2.0 too. I have run two tests, one using the default (50 meters?) and one using precision: 5m, distance_error_pct of 0.01. Relevant mapping:
Relevant part of query (location is a geo_shape):
example location:
Results for default precision: https://gist.github.com/anonymous/954bc675a973abe0bc67c94c696bcf9d Note that for the default precision I only entered 1 location, but the location appears in both results. It seems I'm using the precision incorrectly? When "increasing" precision (5m) my data usage jumps from 21GB to 44GB so it's clearly doing something. So, what does this precision actually mean - i'm guessing the error percentage 0.01 isn't actually 0.01 of 5 meteres as these locations are way outside that possible error. |
@ashleydw completely different issue - this is about |
Thanks for pointing the original question was regarding I've read the docs, and understand so-far as what they say regarding 0 error meaning completely accurate, but they don't really describe what the error percentage is (is 0.01 % of {precision}?). This part of the question could well have been part of #23206. |
We should revisit this after #32039 |
The original issue (with geo_points) was fixed for quite a while. The second issue with the geo_shape was fixed by #35320. Closing. |
In ES 2.4.x the following script shows a bug where for a certain polygon the geo polygon query matches points outside the polygon.
Gist showing polygon in blue, bounding box in red outline and indexed point from script: https://gist.github.com/anonymous/c330a7bc64f8b52add1dc43698c38dbe
The text was updated successfully, but these errors were encountered: