elasticsearch-analysis-ansj icon indicating copy to clipboard operation
elasticsearch-analysis-ansj copied to clipboard

2.4.6这种老版本下,停用词表如何自定义?

Open xljhtq opened this issue 6 years ago • 2 comments

博主,您好: 在以前版本下,elasticsearch中似乎没有加载停用词的地方,这个应该在哪里进行自定义呢?

xljhtq avatar Nov 14 '19 09:11 xljhtq

https://github.com/NLPchina/elasticsearch-analysis-ansj#242%E6%88%96520%E4%BB%A5%E4%B8%8A

shi-yuan avatar Nov 17 '19 11:11 shi-yuan

首先在配置文件中定义停用词典的key和对应的path,然后自定义分词器的时候设置相对应的停用词典的key就行

shi-yuan avatar Nov 17 '19 11:11 shi-yuan