Skip to main content

Module text

Module text 

Source
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.