Skip to main content

Module query

Module query 

Source
Expand description

Index-backed queries (cuj SPEC §9.5, §9.7, §9.17), returning owned data and never printing. Unlike the CLI, cui never reindexes: chains are opened read-only and queried at their pinned state; staleness is reported to the caller instead of blocking on a rebuild (or eprintln!-ing over the alternate screen).

Structs§

FindSpec
A parsed :find argument list, mirroring cuj find.

Enums§

SearchEngine
Which engine served a search.

Functions§

backlinks
Jots whose effective index references of (SPEC §9.17) — a taxopsis query on the two references/entry predicates.
find
Typed filter over the effective index (SPEC §9.5). Returns the matching entries in ascending jot-id order, plus staleness.
search

Type Aliases§

SearchResult
Full-text search: hybrid via zetetes when the vault carries a zetetes chain, else logopsis BM25. Hits are mapped to their owning live jots, deduplicated keeping the best score, capped at k.