elasticsearch.js search的限制
2017-07-20 本文已影响0人
2远
[query_phase_execution_exception] Result window is too large, from + size must be less than or equal to: [10000] but was [100008]. 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.
也就是from加上size之和不能超过10000,否则会报错
大的数据集的查询需要用到scroll api,或者修改配置,修改配置可参考: