convert search to a get request