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}}'
--------------------------------------------------------------------------------------------------------------------------------
永久解决方法:
PUT /_cluster/settings
{"persistent": {"search.max_buckets": 1000000}}
或者
curl -X PUT -k "http://127.0.0.1:9200/_cluster/settings" -H 'Content-Type: application/json' -d '{"persistent":{"search.max_buckets": 1000000}}'