Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default list of stopwords used in Lucene's StopFilter?

Lucene have a default stopfilter (http://lucene.apache.org/core/4_0_0/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html), does anyone know which are words in the list?

like image 955
alvas Avatar asked Jul 08 '13 13:07

alvas


1 Answers

The default stop words set in StandardAnalyzer and EnglishAnalyzer is from StopAnalyzer.ENGLISH_STOP_WORDS_SET, as found in the source file:

"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"

StopFilter itself defines no default set of stop words.

like image 104
femtoRgon Avatar answered Nov 01 '22 15:11

femtoRgon