search-index-softer-check
All checks were successful
Deploy on push / deploy (push) Successful in 32s

This commit is contained in:
Untone 2024-05-18 12:55:34 +03:00
parent 1f3607b4d3
commit 2beb584e87

View File

@ -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))