I have a application that I recently ported to Solr and am running into a few problems with the XML responses from Solr. An XML response which came from a Solr query, returned XML data that was not properly escaped (no CDATA tag, or entity substitution). In particular the "summary" field contains '<' characters. An example of such a response can be found here: http://www.willetts.com/mike/response.xml
I looked through the source code for XMLWriter and it appears to be using util.XML.escape to escape the data, so I do not see how this response able to occur. Does anyone have any ideas? Here is the requestHandler tag in the Solr config file: <requestHandler name="standard" class="solr.StandardRequestHandler" /> On another note: I also noticed that I get non-utf8 characters in the response even though the encoding line at the top of the XML document specifies utf8 encoding. I did not see anywhere in the XMLWriter code that checked the encoding of the output. Is this by design, or am I missing something? Thanks in advance, the feedback I have received from the user lists has been invaluable. Regards, Mike
