【问题标题】:Nest 1.0 does not expose failure reason for failed shardsNest 1.0 不会公开失败分片的失败原因
【发布时间】: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&lt;T&gt; 确实暴露了多少分片成功和多少失败,但我找不到它是否暴露了失败的原因。 &lt;error message&gt; 可能类似于 IndexOutOfBoundsException[Index: 1, Size: 1]

有没有人知道如何使用 Nest1.0 获得此错误消息?

【问题讨论】:

    标签: elasticsearch nest


    【解决方案1】:

    我为此提交了一个问题,Nest 人员已通过 this fix. 添加了此功能

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-18
      • 2013-06-26
      • 2018-06-02
      • 1970-01-01
      • 1970-01-01
      • 2018-09-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多