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

BitSetConjunctionDISI iterators fall out of sync when lead doc >= minlength of bitsets

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 9.0, 9.1, 9.2, 9.3
    • None
    • core/search
    • None
    • New

    Description

      In BitSetConjunctionDISI.doNext() if the lead doc is greater than or equal to the length of any of the BitSets, NO_MORE_DOCS is returned. On subsequent calls to BitSetConjunctionDISI.docId(), the lead's docID which is not exhausted will be returned. I think this could be fixed by calling lead.advance(NO_MORE_DOCS) before returning NO_MORE_DOCS in doNext.

       

      Related issue: https://issues.apache.org/jira/browse/LUCENE-9541

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jmazanec15 Jack Mazanec
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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