'How to increase max bucket count in AWS elastic search?

I am using AWS elasticsearch and I want to increase the max-bucket count but the below query is not working

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

And it is showing response as {"Message":"Your request: '/_cluster/settings' payload is not allowed."}

Thanks in advance



Solution 1:[1]

You cannot.

The cluster setting you'd like to change, like most other cluster settings, is not currently exposed by Amazon Elasticsearch. If your Elastic usage requires this or any other cluster setting that is not one of the following, you are out of luck and cannot use Amazon Elasticsearch.

Note that this is from the 7.x docs; the supported operations for other versions may vary:

  • action.auto_create_index

  • action.search.shard_count.limit

  • indices.breaker.fielddata.limit

  • indices.breaker.request.limit

  • indices.breaker.total.limit

  • cluster.max_shards_per_node

Solution 2:[2]

No,we cannot change max bucket size .but you can setup a ES in server and use it for if need more bucket size. But it will make the results slow

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 breadmenace
Solution 2 Kavin Raja