lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul (JIRA)" <>
Subject [jira] Commented: (SOLR-578) Binary stream response for request
Date Mon, 19 May 2008 04:41:56 GMT


Noble Paul commented on SOLR-578:

The BinaryQueryResponseWriter is the interface you must implement and the 'out' parameter
is an instance of  ServletOutputStream. Using that you can send out any binary data (even
a lucene segment).  

The implementation code  is as follows in SolrDispatchFilter
 if (responseWriter instanceof BinaryQueryResponseWriter) {
     BinaryQueryResponseWriter binWriter = (BinaryQueryResponseWriter) responseWriter;
      binWriter.write(response.getOutputStream(), solrReq, solrRsp);

Is there any specific reason why you must have access to the HttpServletResponse  object ?

> Binary stream response for request
> ----------------------------------
>                 Key: SOLR-578
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 1.3
>            Reporter: Jason Rutherglen
> Allow sending binary response back from request.  This is not the same as encoding in
binary such as BinaryQueryResponseWriter.  Simply need access to servlet response stream for
sending something like a Lucene segment.  

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message