modify search call to include query when bar name is specified