Shrink an index | Elasticsearch API docs (v9)
Shrink an index into a new index with fewer primary shards.