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

Add interval iterators to Scorer

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 5.2, 6.0
    • None
    • None
    • New

    Description

      This change will allow Scorers to expose which positions within a document they have matched, via a new IntervalIterator interface. Consumers get the iterator by calling intervals() on the Scorer, then call reset(docId) whenever the scorer has advanced and nextInterval() to iterate through positions. Once all matching intervals on the current document have been exhausted, nextInterval() returns false.

      Attachments

        1. LUCENE-6226.patch
          129 kB
          Alan Woodward
        2. LUCENE-6226.patch
          70 kB
          Alan Woodward
        3. LUCENE-6226.patch
          285 kB
          Alan Woodward
        4. LUCENE-6226.patch
          83 kB
          Alan Woodward
        5. LUCENE-6226.patch
          84 kB
          Alan Woodward
        6. LUCENE-6226.patch
          140 kB
          Alan Woodward
        7. LUCENE-6226.patch
          85 kB
          Alan Woodward

        Issue Links

          Activity

            People

              romseygeek Alan Woodward
              romseygeek Alan Woodward
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: