elasticsearch aggregates

update the [search.max_buckets] cluster setting


[2018-11-08T18:47:13,428][WARN ][o.e.d.s.a.MultiBucketConsumerService] This aggregation creates too many buckets (10001) and will throw an error in future versions. You should update the [search.max_buckets] cluster setting or use the [composite] aggregation to paginate all buckets in multiple requests.
$ curl -XPUT "http://localhost:9200/_cluster/settings" \
-d '{ "persistent": { "search" : { "max_buckets" : 35000 } } }' \
--header "content-type: application/JSON"