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

Fix FilterLeafReader.FilterTermsEnum to delegate all seekExact methods

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.2.1
    • trunk, 8.0, 8.x, 9.0
    • core/index
    • None
    • 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

              Unassigned Unassigned
              broustant Bruno Roustant
              Votes:
              0 Vote for this issue
              Watchers:
              9 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