Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10232

MultiRangeQuery incorrectly matches docs that only match on a single dimension

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0
    • modules/sandbox
    • None
    • New

    Description

      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.

      Attached PR demonstrates the bug (in a test case) and includes a proposed fix.

      Attachments

        Activity

          People

            gsmiller Greg Miller
            gsmiller Greg Miller
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m