You could use wt=xml&tr=xxxx.xsl and use an xsl stylesheet to transform
the XML into the order you want. (on 3.6 and below, use
wt=xslt&tr=xxxx.xsl)

However, I'm not that sure why you would want to - presumably some app
is going to consume this XML, and can't that put them into the right
order?

Upayavira

On Wed, Jan 23, 2013, at 07:24 AM, Gora Mohanty wrote:
> On 23 January 2013 01:26, hassancrowdc <hassancrowdc...@gmail.com> wrote:
> > sorry if it is a stupid question but where can i find result.xml and where
> > do i write this program? any hints?
> [...]
> 
> The result XML referred to is the XML returned by
> Solr as a response to a query (if you prefer, you
> can instead get JSON by adding &wt=json to the end
> of the query string).
> 
> You will need to write a program to fetch this response,
> parse the XML/JSON, and process it further as needed.
> 
> I think that one can also write a custom Solr QueryComponent
> to reorder fields in each document, but as far as I know
> there is no other simple way to do this.
> 
> It might make sense to have the order of returned fields
> match the order specified by the "fl" attribute.
> 
> Regards,
> Gora

Reply via email to