随笔分类 -  elasticsearch

摘要:命令 GET index/type/_mapping 查看某一索引的mapping 个人比较喜欢 将mapping 单独写一个文件,而不是将注解写在bean的属性上 比如新建一个Product 的bean对象 可以这么写: 1. @Document(indexName = "index_produc 阅读全文
posted @ 2019-07-23 13:16 shigw 阅读(2470) 评论(0) 推荐(0)
摘要:http://developer.51cto.com/art/201904/594615.html这篇文章写的很好~ 1. 文档(Document) ES面向文档,文档是所有可搜索数据的最小单元。 理解成关系新数据库中的一条数据。 文档会被序列化成JSON格式,保存在ES中: JSON对象有字段组成 阅读全文
posted @ 2019-07-21 18:17 shigw 阅读(1150) 评论(0) 推荐(0)
摘要:1.进入官网 https://www.elastic.co/cn/downloads/logstash 下载相应版本的logstash 2. ./bin/logstash -f logstash.conf启动logstash Small: 100,000 ratings and 3,600 tag 阅读全文
posted @ 2019-07-21 17:47 shigw 阅读(247) 评论(0) 推荐(0)
摘要:wget https://artifacts.elastic.co/downloads/kibana/kibana-7.2.0-linux-x86_64.tar.gz tar -vxzf kibana-7.2.0-linux-x86_64.tar.gzcd /home/shigw/soft/kiba 阅读全文
posted @ 2019-07-18 14:25 shigw 阅读(152) 评论(0) 推荐(0)
摘要:1.下载es wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.2.0-linux-x86_64.tar.gz 2.解压 tar -zvxf elasticsearch-7.2.0-linux-x86_ 阅读全文
posted @ 2019-07-16 15:18 shigw 阅读(186) 评论(0) 推荐(0)