【问题标题】:ElasticSearch: List of english stopwordsElasticSearch:英语停用词列表
【发布时间】:2018-12-19 12:09:21
【问题描述】:

当我们选择_english_ 作为Stop Token Filter 文档中提到的语言时,我在哪里可以找到 ElasticSearch 6.3 中使用的最新停用词列表。

【问题讨论】:

标签: elasticsearch


【解决方案1】:

Elasticsearch 为此使用 Lucene 默认值。直到一周前左右,这曾经是https://github.com/apache/lucene-solr/blob/branch_7x/lucene/core/src/java/org/apache/lucene/analysis/standard/StandardAnalyzer.java#L47-L53

现在已移至https://github.com/apache/lucene-solr/blob/master/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishAnalyzer.java#L44-L50,但列表相同:

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

【讨论】:

    猜你喜欢
    • 2010-11-16
    • 2013-07-28
    • 1970-01-01
    • 1970-01-01
    • 2019-12-07
    • 2019-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多