This sounds like a bad idea. You could have done this much simply inside
your own application using libraries that you know well.

That being said, instead of creating a DOM document, create a solr
NamedList object which can be serialized by XMLResponseWriter.


On Thu, Jul 18, 2013 at 6:48 PM, Vineet Mishra <clearmido...@gmail.com>wrote:

> My case is like, I have got a few Solr Instances and querying them and
> getting their xml response, out of that xml I have to extract a group of
> specific xml nodes, later I am combining other solr's response into a
> single xml and making a DOM document out of it.
>
> So as you mentioned in your last mail, how can I prepare a combined
> response for this xml doc and even if I do I don't think it would work
> because the same I am doing in the RequstHandler.
>
>
>
>
>
> On Thu, Jul 18, 2013 at 6:30 PM, Shalin Shekhar Mangar <
> shalinman...@gmail.com> wrote:
>
> > Okay, let me explain. If you construct your combined response (why are
> you
> > doing that again?) in the form a Solr NamedList or SolrDocumentList then
> > the XMLResponseWriter (which btw uses TextResponseWriter) has no problem
> > writing it down as XML. The problem here is that you are giving it an
> > object (a DOM Document?) which it doesn't know how to serialize so it
> just
> > calls .toString on it and writes it out.
> >
> > As long as you stick a known type into the SolrQueryResponse, you should
> be
> > fine.
> >
> >
> > On Thu, Jul 18, 2013 at 6:24 PM, Vineet Mishra <clearmido...@gmail.com
> > >wrote:
> >
> > > So does that mean there is no way that we can write a XML or JSON
> object
> > to
> > > the SolrQueryResponse and expect it to be formatted?
> > >
> >
> >
> >
> > --
> > Regards,
> > Shalin Shekhar Mangar.
> >
>



-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to