随笔分类 -  ES

ElasticSearch相关
摘要:1. 引依赖 spring-boot-starter-data-elasticsearch 2. 配置文件 spring.elasticsearch.rest.uris= ip:port 3. 在 bean 上加注解 @Document(name = "索引名"),索引名首字母小写。 在属性上加字段 阅读全文
posted @ 2023-05-31 04:20 mty072788 阅读(116) 评论(0) 推荐(0)
摘要:增: 多个: post _bulk {"create":{"_index":"索引","_id":"id"}} {"id":1,"title":"小米手机","price":3999} {"create":{"_index":"索引","_id":"id"}} {"id":1,"title 阅读全文
posted @ 2023-05-24 01:24 mty072788 阅读(25) 评论(0) 推荐(0)