.delete(sessionId);
final Object oneTime = data.get(ONE_TIME);
if (oneTime != null) {
if (client != null) {
final DeleteMappingResponse deleteMappingResponse = client
.admin().indices()
.prepareDeleteMapping("_river")
.setType(riverName.name()).execute()
.actionGet();
if (deleteMappingResponse.isAcknowledged()) {
logger.info("Deleted one time river: "
+ riverName.name());
} else {
logger.warn("Failed to delete " + riverName.name()
+ ". Resposne: "
+ deleteMappingResponse.toString());
}
}
}
}
}