gpt4 book ai didi

lucene - 我可以自定义 Elastic Search 以使用我自己的停用词列表吗?

转载 作者:行者123 更新时间:2023-11-29 02:45:03 25 4
gpt4 key购买 nike

具体来说,我想在没有停用词列表的情况下为所有内容(例如 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com