But it seems it even have something called XML ResponseWriter https://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/java/org/apache/solr/response/XMLResponseWriter.java
Wont it be appropriate in my case? Although I have not implemented it yet but how come there couldn't be any way to make a SolrQueryResponse in XML format! On Thu, Jul 18, 2013 at 4:36 PM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > Solr's response writers support only a few known types. Look at the > writeVal method in TextResponseWriter: > > > https://svn.apache.org/repos/asf/lucene/dev/trunk/solr/core/src/java/org/apache/solr/response/TextResponseWriter.java > > > On Thu, Jul 18, 2013 at 4:08 PM, Vineet Mishra <clearmido...@gmail.com > >wrote: > > > Thanks for your response Shalin, > > so does that mean that we can't return a XML object in SolrQueryResponse > > through Custom RequestHandler? > > > > > > On Thu, Jul 18, 2013 at 4:04 PM, Shalin Shekhar Mangar < > > shalinman...@gmail.com> wrote: > > > > > This isn't a Solr issue. Maybe ask on the xerces list? > > > > > > > > > On Thu, Jul 18, 2013 at 3:31 PM, Vineet Mishra <clearmido...@gmail.com > > > >wrote: > > > > > > > Hi all > > > > > > > > I am using a Custom RequestHandlerBase where I am querying from > > multiple > > > > different Solr instance and aggregating their output as a XML > Document > > > > using DOM, > > > > now in the RequestHandler's function > handleRequestBody(SolrQueryRequest > > > > req, SolrQueryResponse resp) I want to output this XML Document to > the > > > user > > > > as a response, but if I write it as a Document or Node by > > > > > > > > For Document > > > > response.add("grouped", domResult); > > > > or > > > > > > > > response.add("grouped", domNode); > > > > > > > > its writing to the user > > > > > > > > For Document > > > > com.sun.org.apache.xerces.internal.dom.DocumentImpl:[#document: null] > > > > or > > > > For Node > > > > com.sun.org.apache.xerces.internal.dom.ElementImpl:[arr: null] > > > > > > > > > > > > Even when the Document is present, because when I convert the > Document > > to > > > > String its coming perfectly, but I don't want it as a String rather I > > > want > > > > it in a XML format. > > > > > > > > Please this is very urgent, has anybody worked on this! > > > > > > > > Regards > > > > Vineet > > > > > > > > > > > > > > > > -- > > > Regards, > > > Shalin Shekhar Mangar. > > > > > > > > > -- > Regards, > Shalin Shekhar Mangar. >