Skip to main content

Module fts

Module fts 

Source
Expand description

SQLite FTS5 full-text search engine for tree-structured documents.

Rust port of Python treesearch/fts.py. Single-file storage: tree structures, FTS5 indexes, and incremental metadata are all stored in one SQLite database.

Key features:

  • WAL mode for concurrent read/write
  • MD-aware schema: front_matter, title, summary, body, code_blocks
  • Hierarchical column weighting via FTS5 bm25()
  • Content hash for incremental indexing
  • Ancestor score propagation for tree search

Structs§

FTS5Index
SQLite FTS5 full-text search index for tree-structured documents.
FtsResult
A single FTS5 search result.
FtsWeights
Column weights for FTS5 bm25() ranking.
IndexStats
Statistics about the FTS5 index.
MdFields
Parsed markdown-aware fields from a node’s text.

Functions§

parse_md_node_text
Parse a node’s text into MD-aware structured fields.