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

Fix FilterLeafReader.FilterTermsEnum to delegate all seekExact methods

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.2.1
    • Fix Version/s: trunk, 8.0, 8.x, master (9.0)
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      FilterLeafReader#FilterTermsEnum wraps another TermsEnum and delegates many methods.

      It misses some seekExact() methods, thus it is not possible to the delegate to override these methods to have specific behavior (unlike the TermsEnum API which allows that).

      The fix is straightforward: simply override these seekExact() methods and delegate.

        Attachments

        1. 0001-Fix-FilterLeafReader.FilterTermsEnum-to-delegate-see.patch
          1 kB
          Bruno Roustant
        2. LUCENE-8292.patch
          0.1 kB
          Bruno Roustant

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bruno.roustant Bruno Roustant
              • Votes:
                0 Vote for this issue
                Watchers:
                10 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 - 0.5h
                  0.5h