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

TwoPhaseDocIdSetIterator.matches should be called at most once per doc ID

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.1, 6.0
    • None
    • None
    • New

    Description

      We did not document it but TwoPhaseDocIdSetIterator.matches should only be called once per doc ID. In some cases, running it twice might not work (eg. phrases since the positions would already be consumed when we try to call matches() on the second time) and in the general case it would be a performance bug if this method is called several times anyway.

      Attachments

        1. LUCENE-6261.patch
          2 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: