Result window is too large, from + size must be less than or equal to: [10000] but was [12000]. 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.
解决:
es已经提示可通过修改index.max_result_window配置解决这个问题。
官方针对index的相关配置介:绍:https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html
步骤:
使用
1.查看index配置,发现没有max_result_window,默认10000
GET /xxxxxx/_settings
2.配置max_result_window,无需重启直接生效
PUT /xxxxxx/_settings?preserve_existing=true
{
"index":{
"max_result_window":2000000000
}
}