title: How to open/close index of a node with Elasticsearch
body: <pre><code>curl -XPOST 'localhost:9200/test/_open'
  curl -XPOST 'localhost:9200/test/_close'
  </code></pre>
  
  <p>How to achieve this with the Java API?<br>
  I have Googled lot but didn't find any solution.  </p>