Added method to search for category by either product or name.