code: @GET
      @Produces({ MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN })
      @SuppressWarnings("checkstyle:illegalcatch")
      public Response search(@QueryParam("query") final String _query)
      {
          Response ret;
          try {
              final SearchResult result = org.efaps.admin.index.Searcher.search(_query);
              ret = Response.ok().type(MediaType.APPLICATION_JSON).entity(getJSONReply(result)).build();
          } catch (final Exception e) {
              LOG.error("Error processing data.", e);
              final ErrorReply reply = new ErrorReply()
                              .setError(e.getClass().getName())
                              .setMessage(e.getMessage())
                              .setStacktrace(ExceptionUtils.getStackTrace(e));
              ret = Response.serverError().type(MediaType.APPLICATION_JSON).entity(getJSONReply(reply)).build();
          }
          return ret;
      }
docs: Search.
  
  @param _query the _query
  @return the response