Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamicdic.txt是否支持删除词语 #18

Open
doudouaili opened this issue May 11, 2021 · 1 comment
Open

dynamicdic.txt是否支持删除词语 #18

doudouaili opened this issue May 11, 2021 · 1 comment

Comments

@doudouaili
Copy link

作者大大您好:
我使用ik-analyzer-solr添加词语分词正常,但是有些业务是需要把这些词删除的.
我发现删除dynamicdic.txt中的一些词语之后,分词还是会有.重启solr之后才会有效.
请问一下作者 有么什么好的办法 不重启自动加载的 谢谢

@dengyongqiang
Copy link

可以尝试如下的方式
截屏2021-08-06 22 59 37
这样可以在配置的时候,对于希望不显示的词,不做分词
代码为:Dictionary类,reloadDic方法,使用的版本为ik-analyzer-7.6.0。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants