Skip to content

Commit

Permalink
update: 适配Elasticsearch 7.3.1版本,更新插件安装步骤
Browse files Browse the repository at this point in the history
  • Loading branch information
KennFalcon committed Aug 27, 2019
1 parent 296980c commit 96922ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ HanLP Analyzer for ElasticSearch
此分词器基于[HanLP](http://www.hankcs.com/nlp),提供了HanLP中大部分的分词方式。

🚩 更新日志:
1. 适配Elasticsearch 7.2.1和7.3.0版本
2. 修改offset设置机制,默认所有分词器打开offset设置,自定义分词时需要自行设置enable_offset配置

吐槽一下:Elasticsearch竟然连续两天发布了这两个版本,不知道发生了什么,有知道的大佬告知一下~
1. 适配Elasticsearch 7.3.1版本

----------

Expand All @@ -22,6 +19,7 @@ HanLP Analyzer for ElasticSearch
| Plugin version | Elastic version |
| :------------- | :-------------- |
| master | 7.x |
| 7.3.1 | 7.3.1 |
| 7.3.0 | 7.3.0 |
| 7.2.1 | 7.2.1 |
| 7.2.0 | 7.2.0 |
Expand Down Expand Up @@ -60,11 +58,9 @@ HanLP Analyzer for ElasticSearch

a. 下载对应的release安装包,最新release包可从baidu盘下载(链接:https://pan.baidu.com/s/1mFPNJXgiTPzZeqEjH_zifw 密码:i0o7

b. 将相关内容解压至*ES_HOME*/plugins/analysis-hanlp

c. 将config目录下的文件移动至*ES_HOME*/config/analysis-hanlp
b. 执行如下命令安装,其中PATH为插件包绝对路径:

d. 解压出的data目录为词典目录
`./bin/elasticsearch-plugin install file://${PATH}`

方式二

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<description>HanLP Analyzer for ElasticSearch</description>

<properties>
<elasticsearch.version>7.3.0</elasticsearch.version>
<elasticsearch.version>7.3.1</elasticsearch.version>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<elasticsearch.assembly.descriptor>${project.basedir}/src/main/assemblies/plugin.xml</elasticsearch.assembly.descriptor>
Expand Down

0 comments on commit 96922ff

Please sign in to comment.