![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
elasticsearch
xuxizhou1994
厚积薄发
展开
-
elasticsearch-head安装及启动
head是用于监控Elasticsearch状态的客户端插件,包括数据可视化,增删改查工具,es语句的可视化等等。5.0之后的安装方式如下: 1 2 3 4 5 6 7 8 git clone git://github.com/mobz/elasticsearch-head.git cd elasticsearch-head npm install npm install -g ..原创 2020-08-14 14:08:51 · 221 阅读 · 0 评论 -
ElasticSearch (五) Postman查询数据
match_allsizefrom sizematch返回指定字段排序-sortrangewildcard查询合并查询语句1. match_all --匹配所有文档match_all下面为查询结果resultsize例如如上在没有设置size的情况下默认查询出只有十条documentsize那么当我们需要查询出多余十条或者指定条数的数据呢,例如如下,我们只查询出三条数据size 3...原创 2020-08-06 18:59:38 · 4594 阅读 · 0 评论 -
mac 下安装 Head插件
四.安装ES-head插件1.Head插件是我们常用的插件,但是在ELK5.0以后按照之前的插件安装方式不能使用了,看了head官网之后,要单独启动一个服务才可以。git clone git://github.com/mobz/elasticsearch-head.gitcd elasticsearch-head接下来需要安装Node环境,我们需要做一下工作:下载对应的Node安装包并安装 二.安装npm 执行命令: 1 npm install 安装完成后执行 ..原创 2020-08-06 14:57:09 · 650 阅读 · 0 评论 -
es 安装ik中文分词器 mac
特别注意的而是,es的版本一定要和ik插件的版本相对应:对应下载地址https://github.com/medcl/elasticsearch-analysis-ik/releases/tag/v6.8.81,下载ik 插件:https://github.com/medcl/elasticsearch-analysis-ik/releases(找到合适在即es版本)解压zip包,并将其复制到es的plugins文件夹下,并将文件夹改名为ik: 删掉zip包,重启即可...原创 2020-08-06 11:21:46 · 920 阅读 · 0 评论 -
None of the configured nodes are available: [{#transport#-1}{erAdMJ4wTNGxixzYoTGhCw}
使用java api和elasticsearch进行交互时,进行到如下代码编写:data: elasticsearch: repositories: enabled: true cluster-nodes: 127.0.0.1:9300抛出错误 :NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{erAdMJ4wTNGxixzYo...原创 2020-08-05 16:01:04 · 187 阅读 · 0 评论 -
启动elasticsearch 报错
Caused by: java.io.IOException: failed to read [id:2, file:/usr/local/var/lib/elasticsearch/nodes/0/indices/xco_IenRRSqzxa-4a7MMog/_state/state-2.st]解决方案:找到/state-2.st 文件删掉启动即可原创 2020-08-04 19:17:58 · 752 阅读 · 0 评论