2017-04-07 77 views

回答

3

它看起来像插件解析响应,并分别处理每个动作的结果 - Plugin code

所以下面的重试警察适用于个人行动 - Plugin retry policy

不良反应的例子:

{ 
    "took": 3, 
    "errors": true, 
    "items": [ 
     { "create": { 
      "_index": "website", 
      "_type": "blog", 
      "_id":  "123", 
      "status": 409, 
      "error": "DocumentAlreadyExistsException 
         [[website][4] [blog][123]: 
         document already exists]" 
     }}, 
     { "index": { 
      "_index": "website", 
      "_type": "blog", 
      "_id":  "123", 
      "_version": 5, 
      "status": 200 
     }} 
    ] 
} 
相关问题