Apache Lucene open-source search software
unify stop word lists with StopAnalyzer - they were identical, so just reuse and avoid possible mismatch later
Erik Hatcherebd6dc86fa12
diff --git a/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java b/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.javaindex 659bf7435d5..35b2f30833c 100644--- a/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java+++ b/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java@@ -65,13 +65,7 @@ public class StandardAnalyzer extends Analyzer {/** An array containing some common English words that are usually notuseful for searching. */- public static final String[] 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"- };+ public static final String[] STOP_WORDS = StopAnalyzer.ENGLISH_STOP_WORDS;/** Builds an analyzer. */public StandardAnalyzer() {