高峰只对攀登它而不是仰望它的人来说才有真正意义。

聚合没有设置查询条件,报错是什么情况?

Elasticsearch | 作者 yunzaiqintian | 发布于2018年05月25日 | 阅读数:1681

通过时间过滤数据,聚合是正常有结果的,随着时间跨度的增大就出现错误,最后把Query去掉就报下图的错误,求大牛看看什么原因导致。聚合的数据量是不是有限制
已邀请:

yunzaiqintian

赞同来自:

 "error"{
  • "root_cause": [[list][*]{[list][*]"type": "index_out_of_bounds_exception",
  • "reason": "index_out_of_bounds_exception: null"

}[/*]
[/list]
],[/*]
[*]"type": "search_phase_execution_exception",[/*]
[*]"reason": "all shards failed",[/*]
[*]"phase": "query",[/*]
[*]"grouped": true,[/*]
[/list]

kennywu76 - Wood

赞同来自:

没有遇到过这个问题。 Github上搜了一下,有人使用 global -> terms -> top_hits 三层聚合嵌套的时候,遇到过类似的问题, 并且确认是ES的Bug, https://github.com/elastic/ela ... 22321
 
你看下是否用了类似的聚合。 如果确认是同一个问题,需要升级版本修复https://github.com/elastic/ela ... 27942
 

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

打印下dsl

要回复问题请先登录注册