[ https://issues.apache.org/jira/browse/LUCENE-1965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Willnauer updated LUCENE-1965:

Attachment: LUCENE-1965.patch

Thanks robert, good catch! I was adding one test with null in the constructor but I missed to finish it apparently.
I merged it into testChineseStopWordsOff().

Patch attached.

Lazy Atomic Loading Stopwords in SmartCN

Key: LUCENE-1965
URL: https://issues.apache.org/jira/browse/LUCENE-1965
Project: Lucene - Java
Issue Type: Improvement
Components: contrib/analyzers
Affects Versions: 2.9
Reporter: Simon Willnauer
Assignee: Simon Willnauer
Priority: Trivial
Fix For: 3.0

Attachments: LUCENE-1965.patch, LUCENE-1965.patch

The default constructor in SmartChineseAnalyzer loads the default (jar embedded) stopwords each time the constructor is invoked.
This should be atomically loaded only once in an unmodifiable set.
This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 7 | next ›
Discussion Overview
groupdev @
postedOct 8, '09 at 6:33p
activeOct 8, '09 at 7:34p

1 user in discussion

Simon Willnauer (JIRA): 7 posts



site design / logo © 2021 Grokbase