Break down #7 into implementable work units — Phase 1: Full-text search (FTS5) — Connect existing infrastructure #23

Closed
opened 2026-05-28 07:16:52 +00:00 by Mark · 1 comment
Owner

Phase 1: Full-text search (FTS5) — Connect existing infrastructure

Replace SQL LIKE search with SQLite FTS5 for proper full-text search across notebook entries. Add ranking, snippets, and query syntax.

Changes needed:

  • SegmentDao.kt line 33-38: replace LIKE '%' || :query || '%' with FTS5 text MATCH :query query on transcript_segments_fts
  • Add ranking/snippet support via FTS5 rank and snippet() functions
  • Add FTS5 query syntax support (quoted phrases, AND/OR operators)
  • SearchScreen (MainScreen.kt ~line 1431): wire results display with highlighted snippets

Note: FTS5 virtual table transcript_segments_fts + sync triggers already exist in MIGRATION_1_2 (AppDatabase.kt lines 34-73). Only the DAO query and UI need switching.


Decomposed from transcriber#22

## Phase 1: Full-text search (FTS5) — Connect existing infrastructure Replace SQL LIKE search with SQLite FTS5 for proper full-text search across notebook entries. Add ranking, snippets, and query syntax. **Changes needed:** - `SegmentDao.kt` line 33-38: replace `LIKE '%' || :query || '%'` with FTS5 `text MATCH :query` query on `transcript_segments_fts` - Add ranking/snippet support via FTS5 `rank` and `snippet()` functions - Add FTS5 query syntax support (quoted phrases, `AND`/`OR` operators) - `SearchScreen` (MainScreen.kt ~line 1431): wire results display with highlighted snippets **Note:** FTS5 virtual table `transcript_segments_fts` + sync triggers already exist in `MIGRATION_1_2` (AppDatabase.kt lines 34-73). Only the DAO query and UI need switching. --- _Decomposed from [transcriber#22](https://forgejo.tail018ac4.ts.net/Mark/transcriber/issues/22)_
Author
Owner

This issue has been decomposed into the following sub-issues:

# Title Phase Scope
#126 Break down #7 into implementable work units — Phase 1: Full- Replace SQL LIKE search with SQLite FTS5 for proper full-text search across note

Each sub-issue has been labeled with needs-triage and will be evaluated by the triage pipeline before queue routing.

This issue has been decomposed into the following sub-issues: | # | Title | Phase Scope | |---|-------|-------------| | #126 | Break down #7 into implementable work units — Phase 1: Full- | Replace SQL LIKE search with SQLite FTS5 for proper full-text search across note | Each sub-issue has been labeled with `needs-triage` and will be evaluated by the triage pipeline before queue routing.
Mark closed this issue 2026-05-28 15:42:29 +00:00
Sign in to join this conversation.
No description provided.