From 2beb584e87f1211a5840ca2868adf4100037cff4 Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 18 May 2024 12:55:34 +0300 Subject: [PATCH] search-index-softer-check --- services/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/search.py b/services/search.py index ea7b8866..c276317f 100644 --- a/services/search.py +++ b/services/search.py @@ -138,7 +138,7 @@ class SearchService: result = json.loads(result) if isinstance(result, dict): mapping = result.get(self.index_name, {}).get("mappings") - if mapping and mapping != expected_mapping: + if mapping and mapping['properties'].keys() != expected_mapping['properties'].keys(): logger.debug("Найдена структура индексации:") logger.debug("\n" + json.dumps(mapping, indent=2, ensure_ascii=False))