美文网首页
Result window is too large, from

Result window is too large, from

作者: 曼昱的小蓝毛巾 | 来源:发表于2021-12-07 10:16 被阅读0次

    1、报错

    Result window is too large, from + size must be less than or equal to: [10000] but was [500000]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting.
    

    2、原因

    2.1 查询结果中 hits.total.value 值最大为10000的限制

    2.2 分页查询 from 大于 10000 时的数据异常

    3、解决方法

    修改 max_result_window 设置的最大索引值

    // kibana直接修改
    PUT /demo-test/_settings
    {
      "index":{
        "max_result_window": 500000000
      }
    }
    
    

    相关文章

      网友评论

          本文标题:Result window is too large, from

          本文链接:https://www.haomeiwen.com/subject/tczzxrtx.html