mirror of https://github.com/apache/lucene.git
- Removed stop words added to the previous revision, so that they don't break
people's existing indices. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149697 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5c75b8623f
commit
cfd243c6d3
|
@ -66,24 +66,11 @@ 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 = {
|
||||
"0","1","2","3","4","5","6","7","8","9",
|
||||
"$",
|
||||
"about", "after", "all", "also", "an", "and",
|
||||
"another", "any", "are", "as", "at", "be", "because",
|
||||
"been", "before", "being", "between", "both", "but",
|
||||
"by","came","can","come","could","did","do","does",
|
||||
"each","else","for","from","get","got","has","had",
|
||||
"he","have","her","here","him","himself","his","how",
|
||||
"if","in","into","is","it","its","just","like","make",
|
||||
"many","me","might","more","most","much","must","my",
|
||||
"never","now","of","on","only","or","other","our","out",
|
||||
"over","re","said","same","see","should","since","so",
|
||||
"some","still","such","take","than","that","the","their",
|
||||
"them","then","there","these","they","this","those","through",
|
||||
"to","too","under","up","use","very","want","was","way","we",
|
||||
"well","were","what","when","where","which","while","who","will",
|
||||
"with","would","you","your", "a","b","c","d","e","f","g","h","i",
|
||||
"j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"
|
||||
"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. */
|
||||
|
@ -97,7 +84,7 @@ public class StandardAnalyzer extends Analyzer {
|
|||
}
|
||||
|
||||
/** Constructs a {@link StandardTokenizer} filtered by a {@link
|
||||
* StandardFilter}, a {@link LowerCaseFilter} and a {@link StopFilter}. */
|
||||
StandardFilter}, a {@link LowerCaseFilter} and a {@link StopFilter}. */
|
||||
public final TokenStream tokenStream(String fieldName, Reader reader) {
|
||||
TokenStream result = new StandardTokenizer(reader);
|
||||
result = new StandardFilter(result);
|
||||
|
|
Loading…
Reference in New Issue