for search results setting the parent and sub category