Elasticsearch查询的时候,报这个错误,网上没有找到原因,麻烦给看下:
{"error":{"root_cause":[],"type":"search_phase_execution_exception","reason":"","phase":"fetch","grouped":true,"failed_shards":[],"caused_by":{"type":"too_many_buckets_exception","reason":"Trying to create too many buckets. Must be less than or equal to: [1000] but was [1001]. This limit can be set by changing the [search.max_buckets] cluster level setting.","max_buckets":1000}},"status":503}
{"error":{"root_cause":[],"type":"search_phase_execution_exception","reason":"","phase":"fetch","grouped":true,"failed_shards":[],"caused_by":{"type":"too_many_buckets_exception","reason":"Trying to create too many buckets. Must be less than or equal to: [1000] but was [1001]. This limit can be set by changing the [search.max_buckets] cluster level setting.","max_buckets":1000}},"status":503}
3 个回复
liuzhen6835
赞同来自:
zqc0512 - andy zhou
赞同来自:
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自:
解决方案:setting里设置:search.max_buckets
官网地址:
https://www.elastic.co/guide/e ... .html
相关讨论:https://discuss.elastic.co/t/w ... 48170
.github讨论:https://github.com/elastic/ela ... 27581