Added search bar logic for place/category queries