Shrinking an index
The latest version of Elasticsearch provides a new way to optimize the index, via the shrink API it's possible to reduce the number of shards of an index.
This feature targets several common scenarios:
- The wrong number of shards during the initial design sizing. Often sizing the shards without knowing the correct data/text distribution tends to oversize the number of shards
- Reducing the number of shards to reduce memory and resource usage
- Reducing the number of shards to speed up searching
You need an up-and-running Elasticsearch installation, as used in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.
curl via the command line, you need to install
curl for your operative ...