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="field1">Val</str>
> <str name="field2">Val</str>
> 
> Etc.
> 
> I would like to change it so that it reads something like:
> 
> <field1>Val</field1>
> <field2>Val</field2>
> 
> Is this possible? If so, how?
> 
> Thanks,
> 
> Brian Lamb

Reply via email to