implement search by category.