![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
elasticsearch
文章平均质量分 54
Hpeacheng
这个作者很懒,什么都没留下…
展开
-
SpringBoot整合ElasticSearch测试代码
1.SpringBoot环境和测试类,我就不讲了。2.yml中的配置clustername:是es的集群名称,默认是elasticsearchcluster-nodes:tcp的地址,不要写错。spring: data: elasticsearch: cluster-name: elasticsearch cluster-nodes: 192.168.199.128:93003.注意:org.springframework.boot,...原创 2022-03-13 21:07:15 · 3012 阅读 · 0 评论 -
Kibana的索引库创建,mapping字段,document的增删改操作
Get /heima1/_mapping为获取映射字段信息GET /heima1/_search内容如下图原创 2022-03-09 17:39:18 · 954 阅读 · 0 评论 -
ElasticSearch用springData的简化写法
【1】jar包配置<properties> <maven.compiler.source>1.9</maven.compiler.source> <maven.compiler.target>1.9</maven.compiler.target> </properties> <dependencies> <dependency>原创 2021-12-10 23:18:24 · 1845 阅读 · 0 评论 -
ElasticSearch和Idea的联合,源方法,不使用springdata框架
【1】创建maven工程,不需要骨架,普通的即可,因为我们是为了学习es在idea上怎么使用,而不是开发项目。【2】导入jar包坐标 这里很多东西中央仓库都没有,而且加载又慢,顺便提一嘴,把maven的config文件夹下的conf-setting.xml中添加阿里的云端记得要把jdk手动设置成1.9,因为idea默认用1.5<properties> <maven.compiler.source>1.9</...原创 2021-12-08 00:23:22 · 892 阅读 · 0 评论 -
ElasticSearch的使用(elasticsearch-head和PostMan)
【1】es(elasticSearch)的学习应该是建立在lucene的基础上的,因为es的底层就是lucene,lucene之前的文章里有介绍用法,这里就不提及了【2】es的安装比较繁琐,反正就是跟着最新的官网来就对了,看视频的小伙伴如果是比较旧的教程不要根据旧教程安装,去https://www.elastic.co/products/elasticsearch下载最新版的即可,还需要下载https://github.com/mobz/elasticsearch-head ,es-head可视化界面的原创 2021-12-07 00:18:23 · 1142 阅读 · 0 评论