Open / Close Index APIs

Unimplemented Feature!
This feature hasn’t yet been implemented…
Pull requests are welcome!

The Open / Close Index APIs allow to close an index, and later on opening it. A closed index has almost no overhead on the cluster, and is blocked for read/write operations. A closed index can be opened which will then go through the normal recovery process.

The REST endpoint command are CLOSE and OPEN. For example:

CLOSE /my_index/
OPEN /my_index/