Fix: clarify corrupted search index log tells user to run reindex (#14876)

This commit is contained in:
Trenton H authored and GitHub committed 2026-11-26 09:56:59 -08:00
1 parent 5ea1bd92c0
commit b0dea5a07d
1 file changed
+3 -1
+3 -1
View File
@@ -385,7 +385,9 @@ def open_or_rebuild_index(index_dir: Path | None = None) -> tantivy.Index:
return tantivy.Index.open(str(index_dir))
except ValueError:
logger.exception(
"Search index is corrupted or incomplete - rebuilding from scratch.",
"Search index is corrupted or incomplete. A new, empty index was "
"created, but existing documents are not indexed yet. "
"Run 'document_index reindex' to repopulate it.",
)
wipe_index(index_dir)
idx = tantivy.Index(build_schema(), path=str(index_dir))