Lucene - Core
  1. Lucene - Core
  2. LUCENE-3434

Make ShingleAnalyzerWrapper and PerFieldAnalyzerWrapper immutable

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Both ShingleAnalyzerWrapper and PerFieldAnalyzerWrapper have setters which change some state which impacts their analysis stack. If these are going to become reusable, then the state must be immutable as changing it will have no effect.

      Process will be similar to QueryAutoStopWordAnalyzer, I will remove in trunk and deprecate in 3x.

      1. LUCENE-3434-3x.patch
        17 kB
        Chris Male
      2. LUCENE-3434-trunk.patch
        21 kB
        Chris Male

        Activity

          People

          • Assignee:
            Chris Male
            Reporter:
            Chris Male
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development