摘要: 背景 Elasticsearch是一个开源的搜索引擎,建立在一个全文搜索引擎库 Apache Lucene™ 基础之上。 Elasticsearch是使用 Java 编写的,它的内部使用 Lucene 做索引与搜索,但是它的目的是使全文检索变得简单, 通过隐藏 Lucene 的复杂性,取而代之的提供 阅读全文
posted @ 2021-06-21 11:36 芝幽幽 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 查询语句 curl -X GET "localhost:9200/megacorp/employee/_search?pretty" -H 'Content-Type: application/json' -d' { "aggs": { "all_interests": { "terms": { " 阅读全文
posted @ 2021-06-21 11:31 芝幽幽 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 1.下载安装公共签名密钥 rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch 2.进入/etc/yum.repos.d 文件夹创建 kibana.repo文件 cd /etc/yum.repos.d vim kibana.re 阅读全文
posted @ 2021-06-21 10:37 芝幽幽 阅读(431) 评论(0) 推荐(0) 编辑