-
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: intersects search for geo_shape return wrong result #49017
Comments
Pinging @elastic/es-analytics-geo (:Analytics/Geo) |
If use linestring [ [0, 0], [5, 5], [7, 7.000001] ], not use [ [0, 0], [5, 5], [7, 7] ], it can return right results.
|
Thanks @happyjoblzp, I had a look into this and it seems a real bug in the Lucene implementation. Basically the line is not detecting the intersection of the polygon because it must goes through the intersection between two edge polygons. I will open a Lucene issue soon and post the link here. |
I have opened https://issues.apache.org/jira/browse/LUCENE-9055 |
Lucene 8.4 contains the fix for this issue so the issue can be closed. |
Linestring intersect with polygon return wrong results!
Bug reappear method:
1、Create index use restful API like this, add insert two data:
2、Use intersects to search, It returns only one piece of data(In fact, both data meet the spatial intersect with the linestring)
I don't know why miss polygon [ [6, 6], [9, 6], [9, 9], [6, 9], [6, 6] ]?
The text was updated successfully, but these errors were encountered: