Take categories into account when doing searches