Expand description
Full-text search over what the served document publishes: the pages its nav reaches, and the chapters and slides of every document those reach, split at their headings into sections, in a tantivy index held in memory. Built at start beside the document index and kept current by the watcher, so a search never reads a file.
tantivy, because it is a real full-text engine — BM25 ranking, stemming, phrases, near and prefix matches — as a library in pure Rust, with an index in memory: nothing to run beside devpage and nothing written to disk.
Structs§
- Answer
- A search’s answer: the pages found, best first, each with its best sections.
- Owner
- The document a page belongs to: its title and its document file’s address.
- Page
Result - One page found: where it is, what it is, and its sections that matched.
- Search
- Section
Result - One section found: its heading, where it is, a snippet of its prose with
the matched words in
<mark>, and those words as its text spells them.
Enums§
- Page
Kind - What a page found is: a site’s page, a doc’s chapter, or a deck’s slide.