pub fn incremental_index(
root: &Path,
backends: &[&dyn EmbedBackend],
tokenizer: &Tokenizer,
cfg: &SearchConfig,
profiler: &Profiler,
model_repo: &str,
cache_dir_override: Option<&Path>,
repo_level: bool,
) -> Result<(HybridIndex, ReindexStats)>Expand description
Load or incrementally update a persistent index.
- Resolve cache directory
- If manifest exists and model matches: Merkle diff, re-embed dirty files
- If no manifest: full embed from scratch
- Rebuild
SearchIndexfrom all cached objects
§Errors
Returns an error if embedding fails or the cache directory is inaccessible.