unify stop word lists with StopAnalyzer - they were identical, so just reuse and avoid possible mismatch later

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150109 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2003-10-20 18:20:48 +00:00
parent eda583780c
commit ebd6dc86fa
1 changed files with 1 additions and 7 deletions

View File

@ -65,13 +65,7 @@ public class StandardAnalyzer extends Analyzer {
/** An array containing some common English words that are usually not /** An array containing some common English words that are usually not
useful for searching. */ useful for searching. */
public static final String[] STOP_WORDS = { public static final String[] STOP_WORDS = StopAnalyzer.ENGLISH_STOP_WORDS;
"a", "and", "are", "as", "at", "be", "but", "by",
"for", "if", "in", "into", "is", "it",
"no", "not", "of", "on", "or", "s", "such",
"t", "that", "the", "their", "then", "there", "these",
"they", "this", "to", "was", "will", "with"
};
/** Builds an analyzer. */ /** Builds an analyzer. */
public StandardAnalyzer() { public StandardAnalyzer() {