Fixing duplicates in search that result from subcategories