es未作任何修改,查詢超過10000條程序報(bào)錯(cuò)
Elasticsearch exception [type=illegal_argument_exception, reason=Result window is too large, from + size must be less than or equal to: [10000] but was [126280]. 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.]
解決方案,修改max_result_window限制
put方式調(diào)用es,修改限制
{
"index":{
"max_result_window":2000000
}
}