Hi, I m using Solr and trying to change the order of the fields displayed in search results. Presently I get them in alphabetical order, can anyone suggest how to change the order?
Martin thanks for sharing the link,was helpful. But now I am stuck again. I have a bunch files, and I want to use Solr to search them. How can I add them to the Solr index?
Neither Solr nor Lucene maintain field order. Why would you want to do this? No end user should see the XML produced by Solr. This XML is the data to be presented by the front end client. YOu should have your web application consume the XML and present results according to what is in your XSLT. SOlr can help create your XSLT, with XSLT Response Writer, which applies an XML stylesheet to output. It can be used for tasks such as formatting results for an RSS feed. See