From ebd6dc86fa1286eab0dd9e19a9d5b949024f29d1 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Mon, 20 Oct 2003 18:20:48 +0000 Subject: [PATCH] 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 --- .../apache/lucene/analysis/standard/StandardAnalyzer.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java b/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java index 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 not useful 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() {