linux|deepin下安装elasticsearch-analysis-ik中文分词插件

in PHP with 0 comment

参考文章

中文分词安装

安装Elastsearch

一定要选择合适的版本, 这里我选择6.4.2

选择版本 https://www.elastic.co/cn/downloads/past-releases

wget 安装链接

选择中文分词插件

v6.4.2

安装

进入到Elastsearch安装链接中, 执行

cd bin
./elasticsearch-plugin https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.4.2/elasticsearch-analysis-ik-6.4.2.zip

错误解决

Positional arguments not allowed, found

切换权限组

sudo groupadd elsearch

sudo useradd elsearch -g elsearch -p 123

添加权限组
添加用户并且设置密码123

使用权限用户进行操作

sudo su elsearch

再次安装

cd bin
./elasticsearch-plugin https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.4.2/elasticsearch-analysis-ik-6.4.2.zip

启动

./elasticsearch

查看已经安装的插件

http://你的url:端口/_cat/plugins

查看ElasticSearch服务状态和结果的URL

https://blog.csdn.net/laotoumo/article/details/79598513

新增安装pinying插件

./elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v6.4.2/elasticsearch-analysis-pinyin-6.4.2.zip

相关文档学习

包的使用:
https://packagist.org/packages/elasticsearch/elasticsearch
https://www.cnblogs.com/codeAB/p/10283304.html

地理位置的查询:
http://cwiki.apachecn.org/pages/viewpage.action?pageId=10029641

查询语法:
https://doc.yonyoucloud.com/doc/mastering-elasticsearch/chapter-2/index.html

经纬度查询实例:
https://cloud.tencent.com/info/4640585893c9d9f1ef1c33f368b7c009.html

Comments are closed.