Reputation: 5808
Where can I find the latest list of stopwords in ElasticSearch 6.3 that get used when we choose _english_
as the language as mentioned in the Stop Token Filter documentation.
Upvotes: 3
Views: 3114
Reputation: 10859
Elasticsearch is using the Lucene defaults for this. Up until a week ago or so this used to be in https://github.com/apache/lucene-solr/blob/branch_7x/lucene/core/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java#L47-L53.
Now it has been moved to https://github.com/apache/lucene-solr/blob/master/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishAnalyzer.java#L44-L50, but the list is the same:
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"
);
Upvotes: 3