curl -XPOST 'localhost:9200/test/_open'
curl -XPOST 'localhost:9200/test/_close'
How to achieve this with the Java API?
I have Googled lot but didn't find any solution.
Playing around in eclipse, it looks like it should be something like this:
client.admin().indices().close(new CloseIndexRequest("test"));
client.admin().indices().open(new OpenIndexRequest("test"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With