From 8fd3b8498b73e11ed45fcb7ee8bb25cf3086bcb0 Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Sun, 17 Oct 2004 11:16:39 +0000 Subject: [PATCH] improve doc for default constructor; make stop word list public but final git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@151012 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/lucene/analysis/de/GermanAnalyzer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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.java index 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 + * (GERMAN_STOP_WORDS). */ public GermanAnalyzer() { stopSet = StopFilter.makeStopSet(GERMAN_STOP_WORDS);