search function takes a uri and Data.Map and makes a get request to the specified uri