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
This commit is contained in:
Daniel Naber 2004-10-17 11:16:39 +00:00
parent 52584cb7e7
commit 8fd3b8498b
1 changed files with 4 additions and 2 deletions

View File

@ -42,10 +42,11 @@ import java.util.Set;
* @version $Id$ * @version $Id$
*/ */
public class GermanAnalyzer extends Analyzer { public class GermanAnalyzer extends Analyzer {
/** /**
* List of typical german stopwords. * List of typical german stopwords.
*/ */
private String[] GERMAN_STOP_WORDS = { public final static String[] GERMAN_STOP_WORDS = {
"einer", "eine", "eines", "einem", "einen", "einer", "eine", "eines", "einem", "einen",
"der", "die", "das", "dass", "daß", "der", "die", "das", "dass", "daß",
"du", "er", "sie", "es", "du", "er", "sie", "es",
@ -71,7 +72,8 @@ public class GermanAnalyzer extends Analyzer {
private Set exclusionSet = new HashSet(); private Set exclusionSet = new HashSet();
/** /**
* Builds an analyzer. * Builds an analyzer with the default stop words
* (<code>GERMAN_STOP_WORDS</code>).
*/ */
public GermanAnalyzer() { public GermanAnalyzer() {
stopSet = StopFilter.makeStopSet(GERMAN_STOP_WORDS); stopSet = StopFilter.makeStopSet(GERMAN_STOP_WORDS);