feat(search): weight subject above body in FTS vector #14
Reference in New Issue
Block a user
Delete Branch "feature/search-weighted-vector"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Slice 2 of search-core. The generated FTS vector now weights subject 'A' vs body 'B', so ts_rank_cd ranks subject matches above body-only mentions.
Includes an EF migration (drop/recreate the stored generated column + GIN index, transactional). Verified the migration DDL against the live staging Postgres (real schema + data, in a rolled-back transaction) before shipping, plus confirmed the weighting changes ranking (subject 1.0 vs body 0.4). Build + all 40 tests pass.
The api auto-applies migrations on boot; the post-deploy health gate will catch any issue.
🤖 Generated with Claude Code