*/
private void createAlias(String alias, String index) throws Exception {
if (logger.isTraceEnabled()) logger.trace("createAlias("+alias+","+index+")");
checkClient();
IndicesAliasesResponse response = client.admin().indices().prepareAliases().addAlias(index, alias).execute().actionGet();
if (!response.isAcknowledged()) throw new Exception("Could not define alias [" + alias + "] for index [" + index + "].");
if (logger.isTraceEnabled()) logger.trace("/createAlias("+alias+","+index+")");
}