1开财、報(bào)錯(cuò)
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 查詢結(jié)果中 hits.total.value 值最大為10000的限制
2.2 分頁(yè)查詢 from 大于 10000 時(shí)的數(shù)據(jù)異常
3雁仲、解決方法
修改 max_result_window 設(shè)置的最大索引值
// kibana直接修改
PUT /demo-test/_settings
{
"index":{
"max_result_window": 500000000
}
}