Formatting the XML returned
Hi all, This list has proven itself quite useful since I got started with Solr. I'm wondering if it is possible to dictate the XML that is returned by a search? Right now it seems very inefficient in that it is formatted like: str name=field1Val/str str name=field2Val/str Etc. I would like to change it so that it reads something like: field1Val/field1 field2Val/field2 Is this possible? If so, how? Thanks, Brian Lamb
Re: Formatting the XML returned
If you're confortable with XSL you can create a transformer and use Solr's XSLTResponseWriter to do the job. http://wiki.apache.org/solr/XsltResponseWriter Hi all, This list has proven itself quite useful since I got started with Solr. I'm wondering if it is possible to dictate the XML that is returned by a search? Right now it seems very inefficient in that it is formatted like: str name=field1Val/str str name=field2Val/str Etc. I would like to change it so that it reads something like: field1Val/field1 field2Val/field2 Is this possible? If so, how? Thanks, Brian Lamb