ElasticSearch7.6.2 search_phase_execution_exception

 环境:ElasticSearch7.6.2  

报这个错误 先看看索引字段 的mapping,然后查看 ElasticSearch 后台运行日志。

如果报这个错误 

bug Trying to create too many buckets. Must be less than or equal to: [10000] but was [10001]. This limit can be set by changing the [search.max_buckets] cluster level setting.

这是6.x版本才有的特性,目的:限制大批量聚合操作,规避性能风险。
解决方案:setting里设置:search.max_buckets 

 curl方式 :

curl --user 用户名:密码  -XPUT 'http://192.168.0.7:9200/_cluster/settings' -H 'Content-Type: application/json' -d'{"persistent": { "search.max_buckets": 217483647}}'

posted @ 2020-04-28 13:15  风中有朵云做的鱼  阅读(8560)  评论(0编辑  收藏  举报