mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-09-23 11:03:41 +00:00
83f3d99b70
* fix: support searching by item ref (e.g. TASK-5, BUG-8) Search only used FTS5 on title/content/tags, but item refs are computed from collection prefix + item number and were never indexed. Additionally, FTS5 interpreted hyphens as NOT operators, causing SQL errors for ref-like queries. Add direct ref lookup before FTS so exact ref matches always appear first, and sanitize FTS queries by quoting tokens to prevent special character interpretation. Fixes BUG-20. * fix: return all ref matches across workspaces in search Address Codex review: use Query instead of QueryRow for ref lookup so unscoped searches (no workspace filter) return matching refs from all workspaces, since refs are not globally unique.