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

ES分词插件需求征集 #40

Open
sing1ee opened this issue Aug 2, 2019 · 24 comments
Open

ES分词插件需求征集 #40

sing1ee opened this issue Aug 2, 2019 · 24 comments

Comments

@sing1ee
Copy link
Owner

sing1ee commented Aug 2, 2019

之前比较忙,最近有空梳理一下分词插件的问题。
大家有什么需求都可以提出来,我这边根据需求的重要程度进行开发。

@wa-ooo
Copy link

wa-ooo commented Aug 11, 2019

你好 ,请问怎么在不停止服务更新词典,我试了下替换词典,reopen index 词典貌似不生效

@wangyifaer
Copy link

es集成jieba分词做全文检索的时候,es的高亮显示会发生偏移。原因是jieba记载postion的方式和es不融洽。我做了修改,问题已经解决,发现效果很好。
https://github.com/wangyifaer/esplugins-jieba

@wangyifaer
Copy link

您好还有一个问题,es结成jieba后,一旦加入自定义分词,就会导致所有es索引自动关闭,原因应该是读取自定义词典失败

@sing1ee
Copy link
Owner Author

sing1ee commented Sep 20, 2019 via email

@nuass
Copy link

nuass commented Mar 5, 2020

jieba字典怎么热更新?

@leafney
Copy link

leafney commented Mar 30, 2020

jieba字典怎么热更新?

同问

@yataosu
Copy link

yataosu commented Apr 22, 2020

能否加入对自定义词典的热更新功能, 每次重启服务太伤了

@sing1ee
Copy link
Owner Author

sing1ee commented Apr 22, 2020 via email

@sing1ee
Copy link
Owner Author

sing1ee commented Apr 22, 2020

@nuass @leafney @Old-Su
字典的热更新可以加,不过有一个疑问:更新字典,总是需要重建索引的。

@iwaitu
Copy link

iwaitu commented May 14, 2020

什么时候能跟上es 的官方版本呀,7.70 了

@sing1ee
Copy link
Owner Author

sing1ee commented May 28, 2020

@iwaitu OK了

@sing1ee
Copy link
Owner Author

sing1ee commented Jun 6, 2020

@wa-ooo @nuass @leafney 最新的master分支和7.7.0的分支都支持字典的热更新了。具体使用见在线更新字段说明

@jerry-00
Copy link

jerry-00 commented Feb 1, 2021

还有7.6.2的版本么?

@sing1ee
Copy link
Owner Author

sing1ee commented Feb 10, 2021

还有7.6.2的版本么?

这个改一下版本号,自己打包即可。

@icelighting
Copy link

为啥我用7.7.0版本改6.8.0版本也没有热更新

@phpsxg
Copy link

phpsxg commented Apr 7, 2021

我使用的es是7.9.2,下载源码后,修改build.gradle,plugin-descriptor.properties文件对应的版本后执行gradle pz,报如下错误

  • What went wrong:
    Could not determine the dependencies of task ':pz'.

Could not resolve all task dependencies for configuration ':distJars'.
Could not resolve project :jieba-analysis.
Required by:
project :
> Project : declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :jieba-analysis.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

@phpsxg
Copy link

phpsxg commented Apr 8, 2021

还有7.6.2的版本么?

这个改一下版本号,自己打包即可。

你那边打包正常吗,我这边打包报错如下:
Downloading https://services.gradle.org/distributions/gradle-4.4.1-bin.zip

Exception in thread "main" java.net.ConnectException: Connection timed out (Connection timed out)

@sing1ee
Copy link
Owner Author

sing1ee commented Apr 8, 2021 via email

@phpsxg
Copy link

phpsxg commented Apr 8, 2021

网络得问题,想想办法 孙晓光 @.***> 于2021年4月8日周四 上午8:47写道:

还有7.6.2的版本么? 这个改一下版本号,自己打包即可。 你那边打包正常吗,我这边打包报错如下: Downloading https://services.gradle.org/distributions/gradle-4.4.1-bin.zip Exception in thread "main" java.net.ConnectException: Connection timed out (Connection timed out) — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#40 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICIWXI3K4DHTTOCVI3TKLTHT4JVANCNFSM4IIZ2UEQ .
执行gradel pz报如下错误,你遇到过吗

root@DESKTOP-LAKGMPD:/mnt/f/STHG/install/ElasticSearch/aaa/elasticsearch-jieba-plugin-7.7.1# gradle pz

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':pz'.
> Could not resolve all task dependencies for configuration ':distJars'.
   > Could not resolve project :jieba-analysis.
     Required by:
         project :
      > Project : declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :jieba-analysis.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
root@DESKTOP-LAKGMPD:/mnt/f/STHG/install/ElasticSearch/aaa/elasticsearch-jieba-plugin-7.7.1#

@hezhiqiang
Copy link

es集成jieba分词做全文检索的时候,es的高亮显示会发生偏移。原因是jieba记载postion的方式和es不融洽。我做了修改,问题已经解决,发现效果很好。 https://github.com/wangyifaer/esplugins-jieba

高亮问题具体要怎么改?能说说吗?我也碰到这个问题了

@hezhiqiang
Copy link

能否加自定义分词功能,用户可以配置,比如:说客英语 => 说客英语 , 说客,这个说客英语就被分词为说客英语和说客

@sing1ee
Copy link
Owner Author

sing1ee commented Oct 14, 2021

高亮问题具体要怎么改?能说说吗?我也碰到这个问题了

这个问题,我来看一下。具体给我个例子吧

@wangyifaer
Copy link

es集成jieba分词做全文检索的时候,es的高亮显示会发生偏移。原因是jieba记载postion的方式和es不融洽。我做了修改,问题已经解决,发现效果很好。 https://github.com/wangyifaer/esplugins-jieba

高亮问题具体要怎么改?能说说吗?我也碰到这个问题了

注意一下高亮那块的代码是否有问题,或者升级es最新版本试试,有可能是分词器和es兼容导致的。如果还不行,就自己修改一下es源码里的position定位那块内容

@zyokia
Copy link

zyokia commented Feb 4, 2024

现在有版本可以支持动态删除词库吗,我看只有新加词库

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

No branches or pull requests