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

Contrib Analyzer Setters should be deprecated and replace with ctor arguments

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.9.1
    • 3.0
    • modules/analysis
    • None
    • New

    Description

      Some analyzers in contrib provide setters for stopword / stem exclusion sets / hashtables etc. Those setters should be deprecated as they yield unexpected behaviour. The way they work is they set the reusable token stream instance to null in a thread local cache which only affects the tokenstream in the current thread. Analyzers itself should be immutable except of the threadlocal.

      will attach a patch soon.

      Attachments

        1. LUCENE-2051.patch
          44 kB
          Simon Willnauer
        2. LUCENE-2051.patch
          36 kB
          Simon Willnauer

        Issue Links

          Activity

            People

              simonw Simon Willnauer
              simonw Simon Willnauer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: