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

Analyzer.tokenStream() shouldn't throw IOException

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 5.4
    • None
    • None
    • New

    Description

      I'm guessing that in the past, calling Analyzer.tokenStream() would call TokenStream.reset() somewhere downstream, meaning that we had to deal with IOExceptions. However, tokenstreams are created entirely lazily now, so this is unnecessary.

      Attachments

        1. LUCENE-6884.patch
          20 kB
          Alan Woodward

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: