def setUp(self):
"""
Start without any index
"""
super().setUp()
conn = get_conn(verify=False)
for index in conn.indices.get_aliases().keys():
if index.startswith(settings.ELASTICSEARCH_INDEX):
conn.indices.delete(index)
评论列表
文章目录