• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

joaoh82 / rust_sqlite / 25282544111
69%

Build:
DEFAULT BRANCH: main
Ran 03 May 2026 03:05PM UTC
Jobs 1
Files 44
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 May 2026 03:01PM UTC coverage: 57.852% (+1.3%) from 56.503%
25282544111

push

github

web-flow
feat(fts): 8a — standalone algorithms (tokenizer + BM25 + posting list) (#78)

Phase 8 sub-phase 8a per docs/phase-8-plan.md. Adds the standalone
inverted-index trio (no SQL integration, no persistence) under
src/sql/fts/, mirroring the role Phase 7d.1's src/sql/hnsw.rs played
for vector search:

- tokenizer.rs   — ASCII split + lowercase (Q3: ASCII MVP)
- bm25.rs        — BM25+ scoring, k1=1.5 / b=0.75 fixed (Q4 + Q5: no
                   stemming, no stop list)
- posting_list.rs — in-memory inverted index keyed on i64 rowid;
                   insert / remove / query / matches / score

Public surface is infallible (no Result wrappers, no project-error
import) and depends only on std — direct reuse target for 8b's
fts_match / bm25_score scalar fns and the try_fts_probe optimizer
hook. Single-line wire-up in src/sql/mod.rs (pub mod fts;).

22 new unit tests, all inline #[cfg(test)]:
- tokenizer: empty/punctuation/lowercase/alphanumeric/non-ASCII
- bm25: zero-cases, TF monotonicity, length normalization, IDF
        domination, hand-computed 3-doc reference, query-token
        compounding
- posting_list: empty/insert/remove/reinsert idempotence, multi-term
                any-term semantics, deterministic 1k-doc corpus,
                tie-break by rowid asc

Out of scope (later sub-phases):
- IndexMethod::Fts arm + executor dispatch         → 8b
- fts_match / bm25_score scalar fns                → 8b
- try_fts_probe optimizer hook                     → 8b
- KIND_FTS_POSTING cell + v4→v5 file-format bump   → 8c
- fts cargo feature gate (defer until MCP tool)    → 8e
- docs sweep                                       → 8f

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

337 of 357 new or added lines in 3 files covered. (94.4%)

5802 of 10029 relevant lines covered (57.85%)

1.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
94.06
src/sql/fts/posting_list.rs
7
92.78
src/sql/fts/bm25.rs
Jobs
ID Job ID Ran Files Coverage
1 25282544111.1 03 May 2026 03:05PM UTC 44
57.85
GitHub Action Run
Source Files on build 25282544111
  • Tree
  • List 44
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 500c0883 on github
  • Prev Build on main (#25281794338)
  • Next Build on main (#25284563739)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc