: core.execute( handler, sreq, rsp ); : : IndexReader reader = sreq.getSearcher().getReader(); : DocListAndSet response = (DocListAndSet)rsp.getValues().get( "response" ); : DocIterator iter = response.docList.iterator(); : while( iter.hasNext() ) { : Document doc = reader.document( iter.next() ); : // ... : }
I can imagine this might be a little easier to deal with if there was a "no-op" QueryResponseWriter that just did this for you ... adding the documents to a new Map in the SolrQueryRequest.getContext() so you can get to them perhaps? -Hoss