美文网首页
elasticsearch.js search的限制

elasticsearch.js search的限制

作者: 2远 | 来源:发表于2017-07-20 17:28 被阅读0次

[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,或者修改配置,修改配置可参考:

http://www.jianshu.com/p/33e7b9744749

相关文章

网友评论

      本文标题:elasticsearch.js search的限制

      本文链接:https://www.haomeiwen.com/subject/nqdjkxtx.html