October 2019
Beginner
186 pages
5h 39m
English
The Shrink API reduces the number of shards in an index. Combined with _forcemerge, it can significantly reduce the number of shards and segments in an index. We can use the following expression to shrink an index:
POST source_index/_shrink/target_index
Using the preceding expression, we can shrink an index; again, this can only be applied to a read-only index.
Read now
Unlock full access