September 14, 2026
For personal note collections under a few hundred thousand documents, standing up a separate search cluster adds more operational weight than value. SQLite's built-in FTS5 virtual table handles prefix matching, phrase queries, and BM25 ranking in a single file.
CREATE VIRTUAL TABLE notes_fts USING fts5( title, body, content='notes', content_rowid='id', tokenize='unicode61 remove_diacritics 2' );
Using an external-content table avoids storing duplicate prose while triggers keep the index synchronized on insert, update, and delete. Weighting the title column three times higher than the body produces noticeably cleaner top results.