From 665c833479089761aded313b913f008c49294550 Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 27 Jul 2023 10:42:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=20E?= =?UTF-8?q?S=20=E5=AD=98=E5=82=A8=20get=5Fmapping=20index=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E4=BD=8D=E7=BD=AE=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/plugins/es.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/plugins/es.py b/apps/common/plugins/es.py index 06b85cb00..27b97b3de 100644 --- a/apps/common/plugins/es.py +++ b/apps/common/plugins/es.py @@ -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