PostgreSQL - Full-Text Search
You want to rank documents by relevance but give higher weight to matches in the title than in the body. Which
ts_rank usage achieves this?ts_rank usage achieves this?Use setweight to assign higher priority ('A') to title and lower ('B') to body.
Concatenate weighted tsvectors and rank against query.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions