NodeJs-ElasticSearch批量API错误处理 [英] NodeJs-ElasticSearch Bulk API error handling

查看:261
本文介绍了NodeJs-ElasticSearch批量API错误处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到任何文档,说明如果Elastic Bulk API在一项或多项操作中失败,将会发生什么。例如,对于以下请求,假设已经有一个ID为 3的文档,那么创建应该失败-这是否会使所有其他操作失败

I can't find any documentation on what happens if Elastic Bulk API fails on one or more of the actions. For example, for the following request, let's say there is already a document with id "3", so "create" should fail- does this fail all of the other actions?

{ "index" : { "_index" : "test", "_type" : "type1", "_id" : "1" } }
{ "field1" : "value1" }
{ "delete" : { "_index" : "test", "_type" : "type1", "_id" : "2" } }
{ "create" : { "_index" : "test", "_type" : "type1", "_id" : "3" } }
{ "field1" : "value3" }
{ "update" : {"_id" : "1", "_type" : "type1", "_index" : "index1"} }
{ "doc" : {"field2" : "value2"} }



查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆