Some index APIs can reduce overhead in specific use cases and improve overall query performance. In this section, we'll discuss how to split the index into more than one primary shard by using the Split API or vice versa by using the _shrink API. Moreover, you can roll over from an old index to a new index on purpose.
Advanced index management APIs
Split index
This API allows you to transform an existing index into a new one while the original primary shard is split into two or more primary shards. The primary shards of the new index must be a factor of the original primary shard. The steps are as follows:
- Use a PUT request to set the source index in read-only mode by updating the setting of the index, and it must...