You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Greg Miller (Jira)" <ji...@apache.org> on 2021/11/17 00:27:00 UTC
[jira] [Comment Edited] (LUCENE-10232) MultiRangeQuery incorrectly matches docs that only match on a single dimension
[ https://issues.apache.org/jira/browse/LUCENE-10232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17444883#comment-17444883 ]
Greg Miller edited comment on LUCENE-10232 at 11/17/21, 12:26 AM:
------------------------------------------------------------------
[~mikemccand] not sure who uses it. There are no direct references to it in the Lucene codebase (outside of tests), but it was added as a sandbox query type in LUCENE-8769. I just happened to notice the bug when I was poking around (thought this could be a good candidate for a use-case we have in Amazon Product Search).
[~atris] since it looks like you're the original author, could you have a quick look to validate this is in fact an identified bug (and a reasonable fix)?
was (Author: gsmiller):
[~mikemccand] not sure who uses it. There are no direct references to it in the Lucene codebase (outside of tests), but it was added as a sandbox query type in LUCENE-8769.
[~atris] since it looks like you're the original author, could you have a quick look to validate this is in fact an identified bug (and a reasonable fix)?
> MultiRangeQuery incorrectly matches docs that only match on a single dimension
> ------------------------------------------------------------------------------
>
> Key: LUCENE-10232
> URL: https://issues.apache.org/jira/browse/LUCENE-10232
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/sandbox
> Reporter: Greg Miller
> Assignee: Greg Miller
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When {{MultiRangeQuery}} iterates the multiple dimensions to see if any of them contain a point/range, it incorrectly short-circuits as soon as one dimension matches. It should instead confirm that all dimensions for that range match.
> I'll attach a PR shortly with updated tests that show this bug along with a fix.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org