Trying to create too many buckets. Must be less than or equal to: [65535] but was [65536]. This limit can be set by changing the [search.max_buckets] cluster level setting.
临时解决办法:
PUT /_cluster/settings
{"transient": {"search.max_buckets": 1000000}}
或者
curl -X PUT "http://127.0.0.1:9200/_cluster/settings" -H 'Content-Type: application/json' -d '{"transient":{"search.max_buckets": 10000}}'
--------------------------------------------------------------------------------------------------------------------------------
永久解决方法:文章来源:https://www.toymoban.com/news/detail-511185.html
PUT /_cluster/settings
{"persistent": {"search.max_buckets": 1000000}}
或者文章来源地址https://www.toymoban.com/news/detail-511185.html
curl -X PUT -k "http://127.0.0.1:9200/_cluster/settings" -H 'Content-Type: application/json' -d '{"persistent":{"search.max_buckets": 1000000}}'
到了这里,关于解决ES search.max_buckets参数问题的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!