Jos*_*rla 11 lucene stop-words elasticsearch
具体来说,我想索引没有停止词列表的所有内容(例如谁).弹性搜索是否足够灵活且易于更改?
Car*_*Orr 17
默认情况下,分析器elasticsearch使用的是带有默认Lucene英语停用词的标准分析器.我已经将elasticsearch配置为使用相同的分析器但没有停用词,只需将以下内容添加到elasticsearch.yml文件即可.
# 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_
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7499 次 |
| 最近记录: |