Skip to main content

Module search

Module search 

Source
Expand description

Title + full-text search over the doc tree.

Two code paths:

  • Title searchfuzzy-matcher::SkimMatcherV2 against the index’s entry titles. Fast, no preprocessing, suitable for the “I know roughly what the page is called” query.
  • Full-text searchtantivy in-memory (RamDirectory) index built once at SearchIndex::build. Matches tokens in the plain-text projection of every page’s body and returns top-N matches with a 140-character snippet.

The DocsBrowser TUI and the DocsServer::search_handler both call into SearchIndex.

Structs§

FullTextHit
Result of a full-text search.
SearchIndex
In-memory tantivy-backed full-text index over the doc tree.
TitleHit
Result of a title search — one row per hit, ordered by descending fuzzy score.