You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by eh...@apache.org on 2003/10/20 20:20:48 UTC
cvs commit: jakarta-lucene/src/java/org/apache/lucene/analysis/standard StandardAnalyzer.java
ehatcher 2003/10/20 11:20:48
Modified: src/java/org/apache/lucene/analysis/standard
StandardAnalyzer.java
Log:
unify stop word lists with StopAnalyzer - they were identical, so just reuse and avoid possible mismatch later
Revision Changes Path
1.5 +1 -7 jakarta-lucene/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java
Index: StandardAnalyzer.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- StandardAnalyzer.java 9 Dec 2002 19:02:21 -0000 1.4
+++ StandardAnalyzer.java 20 Oct 2003 18:20:48 -0000 1.5
@@ -65,13 +65,7 @@
/** 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() {
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org