Examples of prepareClose()


Examples of org.elasticsearch.client.IndicesAdminClient.prepareClose()

                    IndicesAdminClient indicesAdminClient = adminClient.indices();

                    if (!toClose.isEmpty()) {
                        logger.info("Closing indices: {}", toClose);
                        String[] indices = toClose.toArray(new String[toClose.size()]);
                        CloseIndexRequest req = indicesAdminClient.prepareClose(indices).request();
                        indicesAdminClient.close(req).actionGet();
                    }

                    if (!toDelete.isEmpty()) {
                        logger.info("Deleting indices: {}", toDelete);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.