Reindex Vault
reindexUpdate the index when files are modified outside the server, such as by editors or sync tools. Incremental hash-based detection re-parses only changed files, so unchanged files are never reprocessed.
Instructions
Run an incremental reindex on the writer thread.
Only needed when files are modified outside this server — for example, by a text editor, a sync tool, or another process writing directly to the vault directory. Do NOT call this after using 'write', 'edit', 'delete', or 'rename' — those tools queue index updates automatically.
Change detection is hash-based, so an unchanged file is never re-parsed. Use force=True to drop the index and re-parse every file regardless of hashes — the repair for index content that no longer matches what the current server would extract. A version upgrade that changes extraction does this by itself on the next start (#1124), so force=True is a manual escape hatch, not routine maintenance. When semantic search is configured, follow a force=True run with 'build_embeddings' (without force) so the vector index converges to the rebuilt chunk set; an ordinary reindex re-embeds as it goes.
To rebuild all embeddings from scratch (e.g. after changing the embedding model), use 'build_embeddings' with force=True.
A fast reindex (the common case — work scales with the drift, not
the vault) returns its result inline. A reindex still running at the
server's soft deadline continues in the background and returns
{"status": "working", "job_id": ...} immediately — fetch the
outcome with get_job_result. get_index_status remains the
observability view of the index (it also covers boot-time builds and
file-watcher reindexes no client call initiated).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | When True, drop every indexed document and re-parse the whole vault instead of applying the hash-detected delta. The index is not queryable while the rebuild runs, and the cost scales with the vault rather than the drift, so prefer the default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||