def destroy(self):
"""
Deletes all elasticsearch history for Hansa. It will delete all
indexes matching:
dminer-hansa-*
It will also delete the template for indexes. This template is named:
dminer-hansa-template
"""
es = Elasticsearch([":".join([str(self.host), str(self.port)])])
self.logger.info("Deleting index: dminer-hansa-*")
es.indices.delete("dminer-hansa-*")
self.logger.info("Deleting index template: dminer-dreammarket-template")
es.indices.delete_template("dminer-hansa-template")
评论列表
文章目录