Creating OpenSearch rollover indices
If you need to create a new OpenSearch index, you can use the
_rollover API. For example, your index might be too large or too old, or you might
want to use a different number of shards.
About this task
One example of using the _rollover API is deciding the number of shards of your
index. Upon startup, IBM Business Automation Insights creates
indices that are made of five shards and one replica. You can update the number of replicas of an
existing index, but not the number of shards. By using the _rollover API, you can
pass the number of shards you want as a payload to the POST request that regenerates the index.