move code for parsing through search query to the cloud