ES from+size>10000报错

参考博客

from + size > 10000就会报错
Result window is too large, from + size must be less than or equal to: [10000] but was [10001]. 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.
 

# 修改索引窗口限制
PUT /report_base_info/_settings?preserve_existing=true
{
  "max_result_window": "200000"
}

你可能感兴趣的:(elasticsearch,java)