Expand description
waratah text CLI: offline rebuild and status of the O-axis text index.
The rebuild shell mirrors waratah geo rebuild-index: open the O store
and registry in-process (the walk needs registry lexicals the partition
cannot resolve), wipe, walk the six string-literal head prefixes, post
documents, stamp epoch = max commit_ts under the same prefixes. The
sidecar fingerprint comes from the resolved text config, so a config
change lands as a fresh build rather than a silent mismatch.
Functions§
- preflight_
index - Fail fast when an existing text index cannot be adopted by this build.
- rebuild_
offline - Offline rebuild: wipe, walk, post, stamp. Runs against a STOPPED data dir (the geo CLI’s contract); the partition process must not be open on the same Tantivy directory.
- resolve_
config 🔒 - Resolve the text config for a CLI invocation (its own
--config-dir). - status 🔒
- Status line printer (matches the geo CLI’s plain format).
- status_
offline - Read-only status: the sidecar’s stored settings vs the resolved config, plus the live document count.
- status_
predicates 🔒 - Print the predicate universe the resolved config indexes.