
Elasticsearch
小蜗牛的路
一步一步往上爬
展开
-
Elasticsearch-认证xpack开启
1.介绍可以使用企业CA证书来完成这一步骤,但是一般情况下,我们可以通过elasticsearch自带的elasticsearch-certutil的命令生成证书。然后各节点通过该证书可以进行安全通信。为节点创建证书TLS:TLS协议要求Trusted Certificate Authority(CA)签发的X.509的证书证书认证的不同级别Certificate:节点加入集群需要使用想用CA签发的证书Full Verfication:节点加入集群需要使用想用CA签发的证书,还需要验证Hostn转载 2020-08-07 12:02:50 · 2329 阅读 · 0 评论 -
Elasticsearch-拼音分词/排序
1.拼音分词器安装1.1下载拼音分词插件,要和安装的es版本保持一致,我的版本是6.6.0下载地址:https://github.com/medcl/elasticsearch-analysis-pinyin/tree/v6.4.01.2下载完成后,解压,修改pom文件中es版本跟本地es一致,用mvn package 进行打包,在target目录下生成zip,将zip解压后文件放入es的plugins中的文件夹pinyin,重启es1.3创建拼音分词器windows环境:cmd中curl -原创 2020-07-29 12:11:02 · 964 阅读 · 0 评论 -
Elasticsearch-matchQuery(模糊查询)
1.模糊查询关键字:fuzziness例子: { "query": { "match": { "code": { "query": "BIZ102", "fuzziness": "AUTO" } } } }输出:规则: 在查询 text 或者 keyword 类型的字段时, fuzziness 可原创 2020-07-16 15:16:28 · 3464 阅读 · 0 评论 -
elasticsearch-分词测试
分词结果:{ "tokens": [ { "token": "今天天气", "start_offset": 0, "end_offset": 4, "type": "CN_WORD", "position": 0 }, { "token": "今天", "start_offset...原创 2020-06-29 22:16:46 · 852 阅读 · 0 评论 -
Elasticsearch5.5-Linux CentOS7下安装
1、下载elasticsearch-5.5.0.zipwget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.0.zip2、解压unzip elasticsearch-5.5.0.zip3、移动到固定的目录mv /elasticsearch-5.5.0 /usr/softwar...原创 2019-05-10 15:34:43 · 391 阅读 · 1 评论 -
Elasticsearch5.5-Elasticsearch-head插件的安装Linux(CentOS7环境)
1、elasticsearch-head是基于nodejs开发的,所以需要安装nodejs环境2、下载nodejs 安装包进入nodejs官网右键复制下载链接https://nodejs.org/dist/v10.13.0/node-v10.13.0-linux-x64.tar.xzroot用户下进入/usr/local/src目录cd /usr/local/src...转载 2019-05-10 15:52:46 · 414 阅读 · 0 评论 -
Elasticsearch-基本命令
获得所有index - rest方式: curl 'localhost:9200/_cat/indices?v' - JAVA方式 GetIndexResponse response = client.admin().indices().prepareGetIndex().execute().actionGet(); System.out.println(respon...原创 2019-05-15 18:52:25 · 1042 阅读 · 1 评论 -
Elasticsearch5.5-IK分词器安装
0.下载对应的版本IKhttps://github.com/medcl/elasticsearch-analysis-ik/releases1 在elasticsearch的plugins文件夹下新建ik目录2 讲下载下来的ik分词器解压,复制它里面的内容到新建的ik文件夹下面3 启动或者重启elasticsearch,要是看启动日志。应该能看到这样的信息 loaded plu...转载 2019-05-29 18:13:07 · 546 阅读 · 0 评论 -
Elasticsearch -删除索引(index)
删除单个:DELETE /indexcurl -XDELETE 'http://192.169.1.666/index你也可以这样删除多个索引:DELETE /index_one,index_twocurl -XDELETE 'http://192.169.1.666/index_one,index_twoDELETE /index_*curl -XDELETE 'http://1...转载 2019-08-07 17:06:41 · 40404 阅读 · 0 评论