reindex_all
Rebuild the complete search index by re-ingesting all files from scratch. Use after changing embedding models or chunker settings to fix corrupted indexes.
Instructions
Re-ingest ALL indexed files from scratch. Delete existing chunks, then re-ingest every previously-indexed file. Use after changing the embedding model, chunker parameters, or when the index is corrupted. This is a slow, destructive operation — prefer reindex_stale for routine updates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| optimizeAfter | No | Run optimize() after all files are re-ingested (default true). Set to false when calling reindex_all in a loop. |