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

Allows IOException in DocsEnum#freq()

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • core/index
    • New, Patch Available

    Description

      Currently, DocsEnum#freq() does not allow IOException. This is problematic if somebody wants to implement a codec that allows lazy loading of freq. Frequency will be read and decoded only when #freq() will be called, therefore calling IndexInput's read methods that can throw IOException.

      The current workaround is to catch the IOException in freq() and ignore it (which is not very nice and not a good solution).

      Attachments

        1. LUCENE-4046.patch
          14 kB
          Simon Willnauer

        Activity

          People

            simonw Simon Willnauer
            renaud.delbru Renaud Delbru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: