Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@locus.apache.org Received: (qmail 72715 invoked from network); 25 Feb 2008 08:19:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2008 08:19:41 -0000 Received: (qmail 38449 invoked by uid 500); 25 Feb 2008 08:19:35 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 38411 invoked by uid 500); 25 Feb 2008 08:19:35 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 38402 invoked by uid 99); 25 Feb 2008 08:19:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2008 00:19:35 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Feb 2008 08:18:57 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 191E0234C010 for ; Mon, 25 Feb 2008 00:18:51 -0800 (PST) Message-ID: <322255861.1203927531100.JavaMail.jira@brutus> Date: Mon, 25 Feb 2008 00:18:51 -0800 (PST) From: "Noble Paul (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Commented: (SOLR-486) Support binary formats for QueryresponseWriter In-Reply-To: <1017867421.1203926931043.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572024#action_12572024 ] Noble Paul commented on SOLR-486: --------------------------------- Without breaking the existing stuff we can add another interface BinaryQueryResponse extends QueryResponseWriter{ public void write(OutputStream out, SolrQueryRequest request,SolrQueryResponse response) throws IOException; and in the SolrDispatchFilter add the following linesQueryResponseWriter responseWriter = core.getQueryResponseWriter(solrReq); if (responseWriter instanceof BinaryQueryResponse ) { BinaryQueryResponse binaryResp = (Object) responseWriter; binaryResp.write(response.getOutputStream(), solrReq, solrRsp); } else { responseWriter.write(response.getWriter(), solrReq, solrRsp); } > Support binary formats for QueryresponseWriter > ---------------------------------------------- > > Key: SOLR-486 > URL: https://issues.apache.org/jira/browse/SOLR-486 > Project: Solr > Issue Type: Improvement > Components: clients - java, search > Reporter: Noble Paul > Priority: Minor > Fix For: 1.3 > > > QueryResponse writer only allows text data to be written. > So it is not possible to implement a binary protocol . Create another interface which has a method > write(OutputStream os, SolrQueryRequest request, SolrQueryResponse response) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.