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

StemmerOverrideFilter should not copy the stem override dictionary in it's ctor.

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0, 4.1, 4.2
    • 4.2.1, 6.0
    • modules/analysis
    • None
    • New, Patch Available

    Description

      Currently the dictionary is cloned each time the token filter is created which is a serious bottleneck if you use this filter with large dictionaries and can also lead to OOMs if lots of those filters sit in ThreadLocals and new threads are added etc. I think cloning the map should be done in the analyzer (which all of our analyzers do btw. but this is the only TF that does that) no need to really copy that map.

      Attachments

        1. LUCENE-4857.patch
          2 kB
          Simon Willnauer

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: