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

浙公网安备 33010602011771号