reindex
Rebuilds the SQLite FTS5 full-text search index from canonical content. Optionally runs canonical extraction for documents still in ingested status before rebuilding.
Usage
bash
unsterwerx reindex [OPTIONS]
Options
| Option | Short | Type | Default | Description |
|---|---|---|---|---|
--skip-canonical | flag | Skip canonical extraction for documents still in ingested status |
Examples
Full reindex with extraction
bash
unsterwerx reindex
Extracting canonical content for pending ingested documents...
Canonicalized 0 documents (0 failed)
Rebuilding FTS5 index...
Reindex Summary
══════════════════════════════════
Canonical docs: 1807
Indexed in FTS5: 1807
Missing content: 0
Total in FTS5: 1807
══════════════════════════════════
Reindex without extraction
bash
unsterwerx reindex --skip-canonical
Rebuilding FTS5 index...
Reindex Summary
══════════════════════════════════
Canonical docs: 1807
Indexed in FTS5: 1807
Missing content: 0
Total in FTS5: 1807
══════════════════════════════════
Notes
- Use
--skip-canonicalwhen you only need to rebuild the FTS5 index without re-extracting content. - If
Missing contentis non-zero, some canonical records reference CAS files that no longer exist on disk. - This command is safe to run at any time. It rebuilds the index from scratch.