mirror of https://github.com/apache/lucene.git
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:
parent
52584cb7e7
commit
8fd3b8498b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue