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

Make QueryAutoStopWordAnalyzer immutable and reusable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5, 4.0-ALPHA
    • modules/analysis
    • None
    • New

    Description

      Currently QueryAutoStopWordAnalyzer allows its list of stop words to be changed after instantiation through its addStopWords() methods. This stops the Analyzer from being reusable since it must instantiate its StopFilters every time.

      Having these methods means that although the Analyzer can be instantiated once and reused between IndexReaders, the actual analysis stack is not reusable (which is probably the more expensive part).

      So lets change the Analyzer so that its stop words are set at instantiation time, facilitating reuse.

      Attachments

        1. LUCENE-3431-trunk.patch
          23 kB
          Chris Male
        2. LUCENE-3431-3x.patch
          20 kB
          Chris Male

        Activity

          People

            cmale Chris Male
            cmale Chris Male
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: