首页 > Windows开发 > 详细

Result window is too large 问题处理

时间:2016-07-14 15:47:41      阅读:994      评论:0      收藏:0      [点我收藏+]
报错内如如下:
  {"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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!