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