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

如何只使用自定义词库

Open sunfshine opened this issue 6 years ago • 3 comments

一些情况下没有必要使用默认的词典,想要的效果就是除了自定义的词典,其他的全部就分隔为单个字,请问如何实现

sunfshine avatar Oct 07 '19 07:10 sunfshine

单个字的就用standard

shi-yuan avatar Oct 27 '19 02:10 shi-yuan

实在想使用ansj里面的自定义词典功能前提下,用单字的

sunfshine avatar Oct 28 '19 10:10 sunfshine

可以在字典里加,然后用index分词

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