Amazon CloudSearch(至少v2)提供错误和警告,例如:
{
"status": "success",
"warnings": [{
"message": "Multi-valued field \"color\" has no value (near operation with index 949)"
},
{
"message": "Multi-valued field \"color_id\" has no value (near operation with index 949)"
}],
"adds": 1000,
"deletes": 0
}
在哪里找出哪个文档存在问题的唯一方法是使用索引X" 解析" near操作并拔除该索引。
我已经看过a post somewhere that seems to indicate it can return document_id
as well,但我不知道它来自哪里。
所以我的问题有两部分:
答案 0 :(得分:1)
基于有限测试的非官方确认 - 似乎指数是基于1的。
含义"与指数949"接近操作;是指documents[948]
。
知道了,我可以反向引用到文档列表中,将其id附加到错误消息中。