SQL: המילים הכי N בשימוש לפי משתמש (דבר בשפתם!)

The solution would be to create a ts_vector from category title and topic title and subtract that vector from the result, per-topic.