def is_index_exists(self,index):
if not self.is_connected == CONNECTED:
try:
if self.es.indices.exists(index):
return True
else:
return False
except ElasticsearchException, exp:
logger.error("[elastic-logs] exception while checking the existance of the index %s: %s", index, str(exp))
return True
评论列表
文章目录