随笔分类 -  05-ELK

摘要:一、简介 Elasticsearch是一个分布式、可扩展、近实时的高性能搜索和数据分析引擎。基于Java编写,其内部使用Lucene作为索引和搜索。 Elasticsearch提供了搜集、分析、存储数据三大功能,其主要特点有:分布式、零配置、易装易用、自动发现、索引自动分片、索引副本机制、RESTf 阅读全文
posted @ 2020-07-22 13:16 心动如雷 阅读(474) 评论(0) 推荐(0)
摘要:连接ES有3中方式: ①transport方式 ②rest方式 ③JEST方式(第三方) 我自己项目使用第一种方式,代码和配置如下: 1、引入依赖 <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch< 阅读全文
posted @ 2019-07-29 15:52 心动如雷 阅读(1869) 评论(0) 推荐(0)
摘要:使用上篇文章创建的索引进行学习:https://www.cnblogs.com/wangymd/p/11200996.html 官方文档:https://www.elastic.co/guide/en/elasticsearch/painless/6.3/painless-examples.html 阅读全文
posted @ 2019-07-25 17:40 心动如雷 阅读(1414) 评论(0) 推荐(0)
摘要:1、创建测试索引 PUT /test_index{ "mappings": { "test_type":{ "properties": { "code":{ "type": "keyword" }, "name":{ "type": "text", "analyzer": "ik" }, "coun 阅读全文
posted @ 2019-07-25 15:24 心动如雷 阅读(3604) 评论(0) 推荐(0)
摘要:maven引入 <!-- https://mvnrepository.com/artifact/org.elasticsearch/elasticsearch --> <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elas 阅读全文
posted @ 2019-07-11 15:12 心动如雷 阅读(503) 评论(0) 推荐(0)