Fork me on Gitee

随笔分类 -  Elastic Search 7.8 学习笔记

根据尚硅谷的课程,整理ES学习笔记
摘要:安装ElasticSearch 1. 下载ES镜像 docker pull elasticsearch:7.17.3 ​ 创建映射文件 mkdir -p /usr/local/elasticsearch/conf mkdir -p /usr/local/elasticsearch/conf mkdi 阅读全文
posted @ 2022-09-06 22:12 shine-rainbow 阅读(331) 评论(0) 推荐(0)
摘要:SpringData ElasticSearch 整合Elastic Search 1. Spring Data ElasticSearch 介绍 Spring Data Elastic Search 基于Spring data API 简化ElasticSearch操作,将原始操作Elastic 阅读全文
posted @ 2021-11-04 18:33 shine-rainbow 阅读(466) 评论(0) 推荐(0)
摘要:Elastic Search常见面试题 1. 为什么要使用ElasticSearch? 系统中的数据,随着业务的发展,时间的推移,将会非常多。而业务中常采用模糊查询进行数据的搜索,而模糊查询会导致查询引擎放弃索引,导致系统查询数据时都是全表扫描。在百万级别的数据库中,查询效率是非常低下的。如果使用E 阅读全文
posted @ 2021-11-03 15:20 shine-rainbow 阅读(984) 评论(0) 推荐(0)
摘要:ElasticSearch 环境搭建 1. 单机、集群和节点概念。 1.1单机 单机ElasticSearch服务器提供服务,往往都有最大的负载能力,超过这个阈值,服务器性能就会大大降低甚至不可用。因此在生产环境下,一般都是运行在指定服务器集群上。 除了负载能力,单点服务器也存在其他问题: 单台机器 阅读全文
posted @ 2021-11-03 10:31 shine-rainbow 阅读(804) 评论(0) 推荐(1)
摘要:Java API操作ES Elastic Search软件是由Java语言开发的,所以也可以通过Java API的方法对Elastic Search服务进行访问。 1. 引入POM文件 <properties> <elasticsearch.version>7.6.2</elasticsearch. 阅读全文
posted @ 2021-11-02 17:27 shine-rainbow 阅读(1228) 评论(0) 推荐(0)
摘要:ElasticSearch 高级DSL查询语句 1. 准备测试索引和映射关系 向ES集群中发送Put请求,用以创建索引和映射关系:http://127.0.0.1:9200/student 请求Body携带json参数信息如下 { "settings": {}, "mappings": { "pro 阅读全文
posted @ 2021-11-02 14:31 shine-rainbow 阅读(785) 评论(0) 推荐(0)
摘要:1. ES索引的基础操作 1.1 ES创建索引 对于关系型数据库,创建索引就等同于创建数据库。 在Postman中,向ES服务器发送put请求. 例如创建索引 http://127.0.0.1:9200/shopping 1.2 查看索引 在Postman中,向ES服务器发送Get请求:http:/ 阅读全文
posted @ 2021-10-31 19:20 shine-rainbow 阅读(1136) 评论(0) 推荐(1)
摘要:1. Elastic Search 集群搭建 1.1 环境准备 ip规划角色节点名称集群名称 192.168.21.107 Master node-1 es-cluster 192.168.21.108 Slave1 node-2 es-cluster 192.168.21.109 Slave2 N 阅读全文
posted @ 2021-08-19 16:02 shine-rainbow 阅读(201) 评论(0) 推荐(0)