Created
May 11, 2015 22:29
-
-
Save iantruslove/fd12c336742e862dc224 to your computer and use it in GitHub Desktop.
English stop words in Lucene (lucene-5.1.0/analysis/common/src/java/org/apache/lucene/analysis/core/StopAnalyzer.java)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static { | |
final List<String> stopWords = Arrays.asList( | |
"a", "an", "and", "are", "as", "at", "be", "but", "by", | |
"for", "if", "in", "into", "is", "it", | |
"no", "not", "of", "on", "or", "such", | |
"that", "the", "their", "then", "there", "these", | |
"they", "this", "to", "was", "will", "with" | |
); | |
final CharArraySet stopSet = new CharArraySet(stopWords, false); | |
ENGLISH_STOP_WORDS_SET = CharArraySet.unmodifiableSet(stopSet); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment