title: Get the result from SOLR searching
body: <p>i'm new in using SOLR as a searcher. I'm using the standard SolrServlet as a searcher, e.g.</p>
  
  <pre><code>final SolrCore core = SolrCore.getSolrCore();
  SolrServletRequest solrReq = new SolrServletRequest(core, request);
  SolrQueryResponse solrRsp = new SolrQueryResponse();
  try {
  
    SolrRequestHandler handler = core.getRequestHandler(solrReq.getQueryType());
    if (handler==null) {
      log.warning("Unknown Request Handler '" + solrReq.getQueryType() +"' :" + solrReq);
      throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,"Unknown Request Handler '" + solrReq.getQueryType() + "'", true);
    }
    core.execute(handler, solrReq, solrRsp );
    if (solrRsp.getException() == null) {
      QueryResponseWriter responseWriter = core.getQueryResponseWriter(solrReq);
      response.setContentType(responseWriter.getContentType(solrReq, solrRsp));
      PrintWriter out = response.getWriter();
      Set&lt;String&gt; fields = new HashSet&lt;String&gt;();
      fields.add("content");        
      solrRsp.setReturnFields(fields);
      responseWriter.write(out, solrReq, solrRsp);
  </code></pre>
  
  <p>I'm getting the correct answers, but what I'm asking is how can I get the content of the response before it is written from the writer? I know that the return is doc, and I have a field "content" in the doc that I want to get, but before the response page is generated.</p>
  
  <p>Thanks a lot</p>