: How can I view solr docs in response writers before the response is sent : to the client ? What I get is only DocSlice with int values having size : equal the docs requested. All this while debugging on the : SolrQueryResponse Object.
if you are writitng a custom ResponseWriter you can get the Documents corrisponding to a DocList (or DocSlice) by fetching the Documents from the SolrIndexSearcher (with is associated with the SolrQueryRequest) the int's in the DocSlice are the Lucene internal docIds that the IndexSearcher.document(int) method expects. Note: if you subclass the BaseResponseWriter class this is a lot easier -- it takes care of the hard work and converts the Document into a SolrDocument -- all you have to do is implement writeDoc(SolrDocument) -Hoss