search.max_buckets 限制问题

Elasticsearch 报错: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
解决办法:

PUT _cluster/settings
{
  "persistent": {
  "search.max_buckets": 20000
  }
}