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