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

Deprecate Analyzer.tokenStream

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.9
    • modules/analysis
    • None
    • New

    Description

      The addition of reusableTokenStream to the core analyzers unfortunately broke back compat of external subclasses:

      http://www.nabble.com/Extending-StandardAnalyzer-considered-harmful-td23863822.html

      On upgrading, such subclasses would silently not be used anymore, since Lucene's indexing invokes reusableTokenStream.

      I think we should should at least deprecate Analyzer.tokenStream, today, so that users see deprecation warnings if their classes override this method. But going forward when we want to change the API of core classes that are extended, I think we have to introduce entirely new classes, to keep back compatibility.

      Attachments

        1. LUCENE-1678.patch
          8 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: