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

elasticsearch6.4.0如何配置mysql方式的热加载词典 #186

Open
yangsongbai opened this issue Jul 21, 2020 · 3 comments
Open

elasticsearch6.4.0如何配置mysql方式的热加载词典 #186

yangsongbai opened this issue Jul 21, 2020 · 3 comments

Comments

@yangsongbai
Copy link

按照readme的方式,配置mysql的方式加载词典报错,找不到路径;请问可以完善下readme,给出一些详细示例,以及说明。

@yangsongbai
Copy link
Author

执行 http://localhost:9200/_ansj/flush/dic
响应

127.0.0.1:9300 "time out"

@shi-yuan
Copy link
Member

1、确保配置文件,配置的没问题,https://github.com/NLPchina/elasticsearch-analysis-ansj#242%E6%88%96520%E4%BB%A5%E4%B8%8A
2、插件目录下有mysql驱动包
3、plugin-security.policy,打开权限:permission java.net.SocketPermission "*:*", "accept,connect,resolve";
4、访问的时候,需要指定,刷新哪个词典:/_ansj/flush/dic?key=dic_d3

@shi-yuan
Copy link
Member

报错。大致的配置文件,可否提供下?

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