public Map<String,String> getIndexAlias(String[] indexNames) {
Map<String,String> alias=new HashMap<String,String>();
try{
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();