Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

增加词典并没有自动刷新 #102

Open
shanty1 opened this issue Dec 10, 2023 · 9 comments
Open

增加词典并没有自动刷新 #102

shanty1 opened this issue Dec 10, 2023 · 9 comments

Comments

@shanty1
Copy link

shanty1 commented Dec 10, 2023

联想截图_20231210195607 增加了词典,并没有自动加载新词。版本和环境如图 联想截图_20231210195740
@sing1ee
Copy link
Owner

sing1ee commented Dec 10, 2023 via email

@shanty1
Copy link
Author

shanty1 commented Dec 10, 2023

是否有不断加载 dict 的日志?

On Sun, Dec 10, 2023 at 7:58 PM Amor @.> wrote: _20231210195607.png (view on web) https://github.com/sing1ee/elasticsearch-jieba-plugin/assets/47248490/7ebb6db2-cac2-47b0-8d7b-ac05717a5459 增加了词典,并没有自动加载新词。版本和环境如图 _20231210195740.png (view on web) https://github.com/sing1ee/elasticsearch-jieba-plugin/assets/47248490/f2319cd6-ff5b-480e-b99c-9761a9726736 — Reply to this email directly, view it on GitHub <#102>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICIWQ4ZJ2XQTO6YMMYHGDYIWPVFAVCNFSM6AAAAABAOQK4JOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTIMZTHE4TINY . You are receiving this because you are subscribed to this thread.Message ID: @.>

没有,启动后日志就没变化了。即使复制.dict文件进去jieba/dict目录。

@sing1ee
Copy link
Owner

sing1ee commented Dec 10, 2023

这是自定义的文档:https://github.com/sing1ee/elasticsearch-jieba-plugin/blob/master/update_dict_online.md

可以参考这个调试一下。

确认在 dic 目录下,新增 xxx.dict 文件

@sing1ee
Copy link
Owner

sing1ee commented Dec 10, 2023

image
这是关键的地方。

另外,没有定期执行的日志,也是挺奇怪的。

@sing1ee
Copy link
Owner

sing1ee commented Dec 10, 2023

image
我刚刚测试的
image

@shanty1
Copy link
Author

shanty1 commented Dec 10, 2023

image 我刚刚测试的 image

你这是7.17 我是7.6测得7.7 release包

@sing1ee
Copy link
Owner

sing1ee commented Dec 10, 2023 via email

@kewang
Copy link

kewang commented Mar 3, 2024

我遇到相同問題,不過我是 7.15.0,使用 7.7.0 的 plugin

另外搜尋了 es 的啟動 log,只有一行跟 jieba 有關,其他都沒了

[2024-03-03T20:14:04,254][INFO ][o.e.p.PluginsService ] [ip-x-x-x-x] loaded plugin [jieba]

@kewang
Copy link

kewang commented Mar 3, 2024

好像看懂文件的意思了,所以是以 dict 的檔名做為判斷嗎?我還以為是固定時間 reload file

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

No branches or pull requests

3 participants