You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ch...@apache.org on 2011/08/25 12:29:48 UTC
svn commit: r1161483 - in /lucene/dev/branches/branch_3x/lucene/contrib:
CHANGES.txt
analyzers/common/src/java/org/apache/lucene/analysis/nl/DutchAnalyzer.java
Author: chrism
Date: Thu Aug 25 10:29:48 2011
New Revision: 1161483
URL: http://svn.apache.org/viewvc?rev=1161483&view=rev
Log:
LUCENE-3400: Deprecated DutchAnalyzer.setStemDictionary
Modified:
lucene/dev/branches/branch_3x/lucene/contrib/CHANGES.txt
lucene/dev/branches/branch_3x/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/nl/DutchAnalyzer.java
Modified: lucene/dev/branches/branch_3x/lucene/contrib/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/contrib/CHANGES.txt?rev=1161483&r1=1161482&r2=1161483&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/contrib/CHANGES.txt (original)
+++ lucene/dev/branches/branch_3x/lucene/contrib/CHANGES.txt Thu Aug 25 10:29:48 2011
@@ -41,6 +41,9 @@ API Changes
it has been deprecated and will be removed soon.
(Phillipe Ramalho via Adriano Crestani)
+ * LUCENE-3400: Deprecated DutchAnalyzer.setStemDictionary since it prevents
+ TokenStream reuse (Chris Male)
+
Optimizations
* LUCENE-3306: Disabled indexing of positions for spellchecker n-gram
Modified: lucene/dev/branches/branch_3x/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/nl/DutchAnalyzer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/nl/DutchAnalyzer.java?rev=1161483&r1=1161482&r2=1161483&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/nl/DutchAnalyzer.java (original)
+++ lucene/dev/branches/branch_3x/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/nl/DutchAnalyzer.java Thu Aug 25 10:29:48 2011
@@ -220,7 +220,10 @@ public final class DutchAnalyzer extends
* Reads a stemdictionary file , that overrules the stemming algorithm
* This is a textfile that contains per line
* <tt>word<b>\t</b>stem</tt>, i.e: two tab seperated words
+ * @deprecated This prevents reuse of TokenStreams. If you wish to use a custom
+ * stem dictionary, create your own Analyzer with {@link StemmerOverrideFilter}
*/
+ @Deprecated
public void setStemDictionary(File stemdictFile) {
try {
stemdict = WordlistLoader.getStemDict(stemdictFile);