Package com.dotcms.repackage.org.elasticsearch.cluster.metadata

Examples of com.dotcms.repackage.org.elasticsearch.cluster.metadata.MetaData


            Client client=new ESClient().getClient();
            ClusterStateRequest clusterStateRequest = Requests.clusterStateRequest()
                    .filterRoutingTable(true)
                    .filterNodes(true)
                    .filteredIndices(indexNames);
            MetaData md=client.admin().cluster().state(clusterStateRequest)
                                                .actionGet(30000).getState().metaData();

            for(IndexMetaData imd : md)
                for(AliasMetaData amd : imd.aliases().values())
                    alias.put(imd.index(), amd.alias());
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.elasticsearch.cluster.metadata.MetaData

Copyright © 2018 www.massapicom. 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.