【发布时间】:2014-09-07 16:55:47
【问题描述】:
对于在具有 5 个分片的索引上触发的 ES 查询,如果从 4 个分片返回正确的结果并且从一个分片抛出异常,则 _shards 部分的 ES JSON 响应可能如下所示:
"_shards": {
"total": 5,
"successful": 4,
"failed": 1,
"failures": [
{
"index": "<indexname>",
"shard": 4,
"status": 500,
"reason": "<error message>"
}
]
}
ISearchResponse<T> 确实暴露了多少分片成功和多少失败,但我找不到它是否暴露了失败的原因。 <error message> 可能类似于 IndexOutOfBoundsException[Index: 1, Size: 1]。
有没有人知道如何使用 Nest1.0 获得此错误消息?
【问题讨论】:
标签: elasticsearch nest