具体来说,我想在没有停用词列表的情况下对所有内容(例如谁)进行索引。 Elastic Search 是否足够灵活且易于更改?
默认情况下,elasticsearch 使用的分析器是标准分析仪使用默认的 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_
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)