Result window is too large, from + size must be less than or equal to: [10000] but was [500000]. ...

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
  }
}

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容