mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-27 15:35:14 +00:00
Fix: clarify corrupted search index log tells user to run reindex (#14876)
This commit is contained in:
1 parent
5ea1bd92c0
commit
b0dea5a07d
1 file changed
+3
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user