From 40de5c9c0643d3bdb4bf71781de3ca4c7a4cc39d Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Fri, 22 Mar 2024 19:17:50 +0000 Subject: [PATCH] use ES keyword parameters --- woudc_data_registry/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/woudc_data_registry/search.py b/woudc_data_registry/search.py index 8fe0169..b2caba3 100644 --- a/woudc_data_registry/search.py +++ b/woudc_data_registry/search.py @@ -1137,7 +1137,7 @@ def delete(self): index_name = self.generate_index_name(definition['index']) try: - self.connection.indices.delete(index_name) + self.connection.indices.delete(index=index_name) except NotFoundError as err: LOGGER.error(err) raise SearchIndexError(err) @@ -1294,7 +1294,7 @@ def unindex_except(self, domain, targets): } } - self.connection.delete_by_query(index_name, query) + self.connection.delete_by_query(index=index_name, body=query) return True