
IndexRecovery
- Namespace
- Rowles.LeanLucene.Index
- Assembly
- Rowles.LeanLucene.dll
Lightweight crash recovery for LeanLucene indices. On startup: validates the latest commit, falls back to prior generations on corruption, and cleans up orphaned segment files and temp files.
public static class IndexRecovery
IndexRecovery
Methods
RecoverLatestCommit(string, bool)
Attempts to load the latest valid commit from the index directory. Tries generations from highest to lowest. Returns null if no valid commit exists.