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

ES错误:org.elasticsearch.search.query.QueryPhaseExecutionException: Result window is too large, from + size must be less than or equal to: [10000] but was [28939]. 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.

 

 

原因:默认查询长度为10000,库内长度超出

解决:ES问题:Result window is too large, from + size must be less than or equal to: [10000] but was [28939].

*/_settings?preserve_existing=true (我针对是库内所有索引进行更改,不必要时可把*换为你的索引名称)

{
  "max_result_window": "2000000000"
}