-
Notifications
You must be signed in to change notification settings - Fork 0
search
aniongithub edited this page May 19, 2026
·
1 revision
Search is full-text via SQLite's FTS5 extension. Every concepts/pages body and title is indexed; queries return ranked results with snippets.
mcp server # AND of two tokens
"mcp server" # exact phrase
backlinks # single token
arch* # prefix match
The architecture/web-ui search box uses this on submit (Enter). It also live-filters the sidebar list and the graph view as you type — see concepts/wikilinks for the equivalent token semantics in the graph.
- In-process. No separate Elasticsearch, no sidecar daemon, no extra port to manage. See design/lightweight.
- Standard. SQLite is everywhere; the index file is portable.
- Fast enough. Handles tens of thousands of pages with sub-millisecond queries.
- Phrase + prefix + boolean out of the box.
Agents call agents/mcp-tools with the same query syntax. Results come back as {path, title, snippet} triples. See agents/workflows for typical patterns ("look up before write," "search-then-link").
See architecture/index-and-search for how the FTS5 virtual table is maintained alongside the canonical pages table.