From 1e9f18c58fa93ea7afb9e71e1cc4aea23d2442d3 Mon Sep 17 00:00:00 2001 From: shiyu22 Date: Thu, 15 Jun 2023 11:59:43 +0800 Subject: [PATCH] Update es --- es_search.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/es_search.py b/es_search.py index 7f3402f..8a6b4ac 100644 --- a/es_search.py +++ b/es_search.py @@ -33,9 +33,7 @@ class ESSearch(PyOperator): logger.error('Failed to connect ElasticSearch client:\n', e) raise e - def __call__(self, index_name: str, query: dict = {'match_all': {}}, enable: bool=True): - if not enable: - return '' + def __call__(self, index_name: str, query: dict = {'match_all': {}}): resp = self.client.search(index=index_name, query=query) return resp