Repository navigation
lexical: SQLite FTS5 backend behind lexical= (#195 slice 2) - #203
Merged
Merged
Conversation
…ts5", lexical_options={prefix, match}) (#195, slice 2)
…esults cut to current candidates, schema/tokenizer version, clear FTS5-missing error, bm25= not passed to other backends (review fixes)
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #195.
search(..., lexical="fts5"): a persisted index (one SQLite file in the corpus directory, in-memory for an in-memory store), Porter-stemmed matching, optional last-word prefix (lexical_options={"prefix": True}),match="any"|"all". Synced incrementally on first query per open corpus (per-record text-hash stamp; batched, single-flight). Query words are always quoted, so no FTS5 syntax is exposed. Default stays"bm25"; nothing changes unless asked. Scores are on SQLite bm25 scale (floors calibrated forbm25do not apply; the calibration key and CLI flag are the next slice). Deviation from the issue comment: the stamp is a hash of the record text, not the ledger version, because the records are already in memory and it also catches strategy changes.