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

Add getter for reuse strategy to Analyzer, make AnalyzerWrapper's reuse strategy configureable, fix strategy to be stateless

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4
    • Fix Version/s: 4.5, 6.0
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      If you write an Analyzer that wraps another one (but without using AnalyzerWrapper) you may need use the same reuse strategy in your wrapper. This is not possible as there is no way to get the reuse startegy (private field and no getter).

      An example is ES's NamedAnalyzer, see my comment: https://github.com/elasticsearch/elasticsearch/commit/b9a2fbd8741aa1b9beffb7d2922fc9b4525397e4#src/main/java/org/elasticsearch/index/analysis/NamedAnalyzer.java

      This would add a getter, just a 3-liner.

        Attachments

        1. LUCENE-5170.patch
          0.6 kB
          Uwe Schindler
        2. LUCENE-5170.patch
          25 kB
          Uwe Schindler
        3. LUCENE-5170.patch
          25 kB
          Uwe Schindler
        4. LUCENE-5170.patch
          25 kB
          Uwe Schindler

          Activity

            People

            • Assignee:
              thetaphi Uwe Schindler
              Reporter:
              thetaphi Uwe Schindler
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: