Search — Type Diagram

Search — Type Diagram An architecture diagram generated by Archify. Index · Open/Close · Reindex · Architecture component Index Open/Close · Reindex Query · Text · Tags · Kinds · Architecture component Query Text · Tags · Kinds Git · CommittedPages(since) · Architecture component Git CommittedPages(since) Hit · PageRef · Score · Snippet · Architecture component Hit PageRef · Score · Snippet Stats · Pages · Inserted · Removed · Architecture component Stats Pages · Inserted · Removed VaultGit · → Vault Ops · Architecture component VaultGit → Vault Ops Status · GitHead · UncommittedPages · Architecture component Status GitHead · UncommittedPages TagCount · struct — Tag · Count · Architecture component TagCount struct — Tag · Count searchindex · SchemaVer · TokenizeQuery · Architecture component searchindex SchemaVer · TokenizeQuery Search() returns Reindex() returns Status() returns TagCounts() holds Git satisfies Legend Backend Database Security External

Materialised View of HEAD

  • • Index.sync runs before every Search — compares meta.git_head watermark
  • • No filesystem work when HEAD is unchanged; applies delta or full rebuild
  • • An uncommitted page is never indexed (ADR-0015)

Git interface

  • • Index holds a Git interface satisfied by VaultGit — not Vault
  • • Avoids import cycle; callers open Index via searchindex.Open directly (ADR-0010)