Apache Lucene open-source search software
improve doc for default constructor; make stop word list public but final
Daniel Naber8fd3b8498b73
diff --git a/sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.java b/sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.javaindex 5778e674e51..2369d08bcb9 100644--- a/sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.java+++ b/sandbox/contributions/analyzers/src/java/org/apache/lucene/analysis/de/GermanAnalyzer.java@@ -42,10 +42,11 @@ import java.util.Set;* @version $Id$*/public class GermanAnalyzer extends Analyzer {+/*** List of typical german stopwords.*/- private String[] GERMAN_STOP_WORDS = {+ public final static String[] GERMAN_STOP_WORDS = {"einer", "eine", "eines", "einem", "einen","der", "die", "das", "dass", "daß","du", "er", "sie", "es",@@ -71,7 +72,8 @@ public class GermanAnalyzer extends Analyzer {private Set exclusionSet = new HashSet();/**- * Builds an analyzer.+ * Builds an analyzer with the default stop words+ * (<code>GERMAN_STOP_WORDS</code>).*/public GermanAnalyzer() {stopSet = StopFilter.makeStopSet(GERMAN_STOP_WORDS);