poetry-fix
Some checks failed
Deploy on push / deploy (push) Failing after 10s

This commit is contained in:
2024-10-14 13:10:20 +03:00
parent 8b65c87750
commit 5966512a8f
3 changed files with 7 additions and 6 deletions

View File

@@ -141,9 +141,10 @@ class SearchService:
if isinstance(result, dict):
mapping = result.get(self.index_name, {}).get("mappings")
logger.info(f"Найдена структура индексации: {mapping['properties'].keys()}")
if mapping and mapping["properties"].keys() != expected_mapping["properties"].keys():
expected_keys = expected_mapping["properties"].keys()
if mapping and mapping["properties"].keys() != expected_keys:
logger.info(f"Ожидаемая структура индексации: {expected_mapping}")
logger.warn("[!!!] Требуется переиндексация всех данных")
logger.warning("[!!!] Требуется переиндексация всех данных")
self.delete_index()
self.client = None
else: