curl -XPOST 'localhost:9200/test/_open' curl -XPOST 'localhost:9200/test/_close'
How to achieve this using Java API?I have a lot of Googled, but have not found any solution.
Playing 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"));
Source: https://habr.com/ru/post/1542470/More articles:How to ensure that strings are in UTF-8? - javaОбновить значок значка, когда приложение закрыто - iphoneHow to import XML files using mysql LOAD XML LOCAL INFILE - xmlreturn php artisan serve command to laravel - command-lineHow to select multiple images from a gallery in titanium? - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1542471/soapui-fails-to-connect-https-sslpeerunverifiedexception&usg=ALkJrhjIKCTkn4Qo36V2fb0LkXHwqRPq7wRun code in a sandbox, with modules in the same context - javascriptLibgdx, how to calculate the elapsed time - javaAutomatically switch to an area after a loss of connection in IBM Worklight - authenticationhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1542475/does-my-windows-app-needs-to-be-signed-with-a-trusted-certificate&usg=ALkJrhhLrdnJ4l2OOAJFuONGkLJNBbKPFwAll Articles