IK分词插件将Lucene IK分词器集成到elasticsearch中,支持自定义字典。
分词器: ik_smart
, ik_max_word
, Tokenizer: ik_smart
,ik_max_word
版本依赖关系
| IK version | ES version |
| — | — |
| master | 7.x -> master |
| 6.x | 6.x |
| 5.x | 5.x |
| 1.10.6 | 2.4.6 |
| 1.9.5 | 2.3.5 |
| 1.8.1 | 2.2.1 |
| 1.7.0 | 2.1.1 |
| 1.5.0 | 2.0.0 |
| 1.2.6 | 1.0.0 |
| 1.2.5 | 0.90.x |
| 1.1.3 | 0.20.x |
| 1.0.0 | 0.16.2 -> 0.19.0 |
1.下载或编译
- 可选1 - 从这里下载预构建包:https://github.com/medcl/elasticsearch-analysis-ik/releases
创建插件文件夹 cd your-es-root/plugins/ && mkdir ik
将插件解压到文件夹 your-es-root/plugins/ik
- 可选2 - 使用 elasticsearch-plugin 安装(从 v5.5.1 版本支持):
./bin/el