Searches for the query entered by the user.