mirror of https://github.com/apache/lucene.git
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:
parent
eda583780c
commit
ebd6dc86fa
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue