报错内如如下: {"error" : { "root_cause" : [ { "type" : "query_phase_execution_exception", "reason" : "Result window is too large, from + size must be less than or equal to: [10000] but was [12000]. See the scroll api for a more efficient way to reques t large data sets. This limit can be set by changing the [index.max_result_window] index level parameter." } ], ...} 根据错误提示了解到默认的最大size大小为10000,可以通过设置如下参数解决: curl -XPUT localhost:9200/index_name/_settings -d ‘{ "index" : { "max_result_window" : 1000000}}‘ 这里的index_name是指索引名称,替换成你自己定义的索引名称。 有关官方针对index的相关配置介绍: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html
本文出自 “雨还是不停的落下” 博客,请务必保留此出处http://8869176.blog.51cto.com/8859176/1826350
Result window is too large 问题处理
原文地址:http://8869176.blog.51cto.com/8859176/1826350