[
https://issues.apache.org/jira/browse/SOLR-578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597868#action_12597868
]
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
{code}
if (responseWriter instanceof BinaryQueryResponseWriter) {
BinaryQueryResponseWriter binWriter = (BinaryQueryResponseWriter)
responseWriter;
binWriter.write(response.getOutputStream(), solrReq, solrRsp);
}
{code}
Is there any specific reason why you must have access to the
HttpServletResponse object ?
> Binary stream response for request
> ----------------------------------
>
> Key: SOLR-578
> URL: https://issues.apache.org/jira/browse/SOLR-578
> 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.