具体来说,我想在没有停用词列表的情况下为所有内容(例如 who)编制索引。 Elasticsearch 是否足够灵活且易于更改?
最佳答案
默认情况下,elasticsearch 使用的分析器是 standard analyzer使用默认的 Lucene 英语停用词。通过将以下内容添加到 elasticsearch.yml 文件,我已将 elasticsearch 配置为使用相同的分析器但没有停用词。
# Index Settings
index:
analysis:
analyzer:
# set standard analyzer with no stop words as the default for both indexing and searching
default:
type: standard
stopwords: _none_
关于lucene - 我可以自定义 Elastic Search 以使用我自己的停用词列表吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4927629/