This commit is contained in:
parent
0051492bd3
commit
1f3607b4d3
|
@ -139,7 +139,12 @@ class SearchService:
|
|||
if isinstance(result, dict):
|
||||
mapping = result.get(self.index_name, {}).get("mappings")
|
||||
if mapping and mapping != expected_mapping:
|
||||
logger.debug(f"Найдена структура индексации: {mapping}")
|
||||
logger.debug("Найдена структура индексации:")
|
||||
logger.debug("\n" + json.dumps(mapping, indent=2, ensure_ascii=False))
|
||||
|
||||
logger.debug("Ожидаемая структура индексации:")
|
||||
logger.debug("\n" + json.dumps(expected_mapping, indent=2, ensure_ascii=False))
|
||||
|
||||
logger.warn(
|
||||
"[!!!] Требуется другая структура индексации и переиндексация всех данных"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user