-
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
MultiPoint query yields more false positives when points are further apart #27954
Comments
Hi @mikeurbach. Firstly, thanks so much for putting the effort into providing a small reproduction for this. It makes it so much easier to see what's going on. I can reproduce this undesirable hit with version 6.1.1 and on In some sense, I think this is expected behaviour: However, regarding the following:
I can't reproduce this effect. Reducing @nknize I'm wondering if it makes sense to apply |
Thanks for the explanation. I was wondering if
Regarding the difference between using the
But I do get the false positive when I switch to the following:
I understand that this is a pretty outlandish case, but it was surprising to me that one tree implementation returns a false positive with the default precision settings while the other does not. It seems like the behavior is indeed expected, and if I really need more accuracy for these huge MultiPoints, I can tune the parameters as you mentioned. Thanks again for the clarification. |
Depends on #32039 |
We still cannot resolve this one since BKD-tree backed geoshapes don't support MultiPoint queries. |
I am closing this issue as BKD-backed geoshapes support multi-points and they do not show this behaviour. |
Elasticsearch version: Version: 6.1.1, Build: bd92e7f/2017-12-17T20:23:25.338Z, JVM: 1.8.0_45
Plugins installed: []
JVM version : Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
OS version: Darwin Kernel Version 14.5.0: Sun Jun 4 21:40:08 PDT 2017; root:xnu-2782.70.3~1/RELEASE_X86_64 x86_64
Description of the problem including expected versus actual behavior:
I am using a geo_shape mapping to index polygons and querying with a multi point. I get false positives when the multi point contains points that are very far apart and do not intersect any polygon. If I use non-matching points that are sufficiently close together, there is no false positive, as expected.
This appears to only be happening when I enable the
"tree": "quadtree"
option for this field. I couldn't reproduce with the default geohash tree. I've tried with different precision and distance error percent settings, but the issue remains, and it occurs with the default settings.I don't think this is a duplicate of #27123, as this seems to be related to the quadtree implementation, multi points, and much larger distances than the example in #27123.
Steps to reproduce:
I haven't played around too much with exactly how "far apart" the points need to be for this to happen.
The text was updated successfully, but these errors were encountered: