changed search endpoint to use query as part of path rather than a param