fix: 修复创建 ES 存储 get_mapping index 使用位置参数

This commit is contained in:
Bai
2023-07-27 10:42:05 +08:00
committed by Bryan
parent 77944cc91b
commit 665c833479

View File

@@ -91,7 +91,7 @@ class ES(object):
try:
# 获取索引信息,如果没有定义,直接返回
data = self.es.indices.get_mapping(self.index)
data = self.es.indices.get_mapping(index=self.index)
except NotFoundError:
return False