February 2017
Intermediate to advanced
696 pages
12h 24m
English
If you want to keep your data but save resources (memory/CPU), a good alternative to deleting indexes is to close them.
Elasticsearch allows you to open/close an index putting it into online/offline mode.
You need an up-and-running Elasticsearch installation, as used in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.
To execute curl via the command line, you need to install curl for your operative system.
To correctly execute the following commands, the index created in the Creating an index recipe is required.
For opening/closing an index, we will perform the following steps:
POST call to close an index using:curl -XPOST ...
Read now
Unlock full access