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}}'


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM