get search query to server