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

7.1.1使用postgresql更新词库不生效 #181

Open
ujhalf opened this issue Mar 31, 2020 · 1 comment
Open

7.1.1使用postgresql更新词库不生效 #181

ujhalf opened this issue Mar 31, 2020 · 1 comment

Comments

@ujhalf
Copy link

ujhalf commented Mar 31, 2020

config/elasticsearch-analysis-ansj/ansj.cfg.yml如下
image
es根目录下 libraries.properties配置如下
image
config/目录下的ansj_library.properties配置如下:
image

我的需求是通过postgresql能更新 但是 刷新很多次 测试多次 发现postgresql的词 从来没有作用
请问该怎样解决 可能是哪些问题

@xpcomrade
Copy link

xpcomrade commented May 13, 2020

你的项目依赖postgresql 的连接jar了么?
可以看下es的加载日志,是否有问题。
另外数据链接需要修改jre java.policy
permission java.lang.RuntimePermission "getClassLoader"; permission java.lang.RuntimePermission "setContextClassLoader"; permission java.io.FilePermission "<<ALL FILES>>", "read,write"; permission java.net.SocketPermission "*:*", "accept,connect,resolve";

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