ElasticSearch 中文分词插件安装
来源:互联网 发布:ajax传值json给php 编辑:程序博客网 时间:2024/06/05 09:47
1. ik
现在不支持bin/plugin -install medcl/elasticsearch-analysis-ik/1.1.3
在elasticsearch/plugins目录下建analysis-ik目录
然后直接下载安装包
https://github.com/medcl/elasticsearch-rtf/tree/master/elasticsearch/plugins/analysis-ik
词库还是一样
2. mmseg (https://github.com/medcl/elasticsearch-analysis-mmseg)
直接下载安装包安装
词库
3. paoding
直接下载安装包安装
词库
完整elasticsearch配置
编辑elasticsearch.yml
在elasticsearch/plugins目录下建analysis-ik目录
然后直接下载安装包
https://github.com/medcl/elasticsearch-rtf/tree/master/elasticsearch/plugins/analysis-ik
- cd plugins
- mkdir analysis-ik
- cd analysis-ik
- wget https://github.com/medcl/elasticsearch-rtf/blob/master/elasticsearch/plugins/analysis-ik/elasticsearch-analysis-ik-1.1.4.jar?raw=true --no-check-certificate
词库还是一样
- cd config
- wget http://github.com/downloads/medcl/elasticsearch-analysis-ik/ik.zip --no-check-certificate
- unzip ik.zip
- rm ik.zip
2. mmseg (https://github.com/medcl/elasticsearch-analysis-mmseg)
直接下载安装包安装
- cd plugins
- mkdir analysis-mmseg
- cd analysis-mmseg
- wget https://github.com/medcl/elasticsearch-rtf/blob/master/elasticsearch/plugins/analysis-mmseg/elasticsearch-analysis-mmseg-1.1.2.jar?raw=true --no-check-certificate
词库
- cd config
- mkdir mmseg
- wget https://github.com/medcl/elasticsearch-rtf/raw/master/elasticsearch/config/mmseg/chars.dic --no-check-certificate
- wget https://github.com/medcl/elasticsearch-rtf/raw/master/elasticsearch/config/mmseg/units.dic --no-check-certificate
- wget https://github.com/medcl/elasticsearch-rtf/raw/master/elasticsearch/config/mmseg/words-my.dic --no-check-certificate
- wget https://github.com/medcl/elasticsearch-rtf/raw/master/elasticsearch/config/mmseg/words.dic --no-check-certificate
3. paoding
直接下载安装包安装
- cd plugins
- mkdir analysis-paoding
- cd analysis-paoding
- wget https://github.com/medcl/elasticsearch-rtf/blob/master/elasticsearch/plugins/analysis-paoding/elasticsearch-analysis-paoding-1.0.1.jar?raw=true --no-check-certificate
词库
- cd config
- mkdir paoding
- wget https://github.com/downloads/medcl/elasticsearch-analysis-paoding/config.zip --no-check-certificate
- unzip config.zip
- cp -rp config/paoding/* .
- rm -rf config
- rm config.zip
完整elasticsearch配置
编辑elasticsearch.yml
- index:
- analysis:
- tokenizer:
- mmseg_maxword:
- type: mmseg
- seg_type: "max_word"
- mmseg_complex:
- type: mmseg
- seg_type: "complex"
- mmseg_simple:
- type: mmseg
- seg_type: "simple"
- analyzer:
- mmseg:
- alias: [news_analyzer, mmseg_analyzer]
- type: org.elasticsearch.index.analysis.MMsegAnalyzerProvider
- ik:
- alias: [ik_analyzer]
- type: org.elasticsearch.index.analysis.IkAnalyzerProvider
- ik_max_word:
- type: ik
- use_smart: false
- ik_smart:
- type: ik
- use_smart: true
- paoding:
- alias: [paoding_analyzer]
- type: org.elasticsearch.index.analysis.PaodingAnalyzerProvider
0 0
- ElasticSearch 中文分词插件安装
- Elasticsearch安装中文分词插件ik
- Elasticsearch安装中文分词插件ik
- Elasticsearch安装中文分词插件ik
- Elasticsearch中文分词插件ik的安装
- Elasticsearch如何安装中文分词插件ik
- Elasticsearch如何安装中文分词插件ik
- Elasticsearch中文分词ik插件安装
- 安装Elasticsearch analysis ik中文分词插件
- Elasticsearch安装中文分词插件ik
- elasticsearch(4)安装hanlp中文分词插件
- ElasticSearch 安装分词插件
- elasticsearch 2.3.4中文分词插件ik 1.9.4安装
- Elasticsearch中文分词插件IK Analyer安装操作指导
- ELK第三篇:Elasticsearch安装IK中文分词插件
- 新鲜出炉Elasticsearch如何安装中文分词插件ik
- ElasticSearch安装ik分词插件
- ElasticSearch安装ik分词插件
- swift学习之- 闭包
- android下c代码如何输出到logcat?
- 在PowerDesigner中创建触发器(Trigger)的有关问题
- Pom.xml
- 关于iar汇编语言添加头文件问题
- ElasticSearch 中文分词插件安装
- oracle导入导出(impdp/expdp)高版本导入低版本
- Android Studio setId 签名打包报错
- Windows下MySQL修改Data存放路径
- 设计模式简单理解
- .net中后台定时执行任务-FluentScheduler
- BestCoder Round #91 1001 (HDU 6011 Lotus and Characters) 1002 (HDU 6012 Lotus and Horticulture)
- 数据库的备份与恢复
- javabean根据属性名称获取对应的的getter/setter方法名