elastic 6.x 利用restApi 与集群进行交互 .3.3

1.批处理操作

快速查看多个文档

POST /customer/_doc/_bulk?pretty
{"index":{"_id":"1"}}
{"name": "John Doe" }
{"index":{"_id":"2"}}

{"name": "Jane Doe" }

更新,删除操作.

POST /customer/_doc/_bulk?pretty
{"update":{"_id":"1"}}
{"doc": { "name": "John Doe becomes Jane Doe" } }

{"delete":{"_id":"2"}}

猜你喜欢

转载自blog.csdn.net/weixin_38098312/article/details/80076070
3.3
今日推荐