: it sure seems to me that if SOLR is returning XML, it might as well return
: XML with real markup through and through instead of exploiting
: pseudo-markup. if there is concern about introducing validation errors, then
: perhaps you could use namespaces in the XML and put the highlighting markup
: in a non-SOLR namespace???

the problem is that XML is only one of many formats Solr can return, and
the "psuedo-markup" can be choosen by the client completely independent
of the output format -- it might be <em>...</em> or it might me
[HiGhLiGhT"START}...<EnD] -- the choice is entirely up to the user, and
the XMLResposneWriter must ensure that it is properly escaped so it
produces a valid XML document, just as the JSONResponseWriter must ensure
that it's properly escaped to produce a valid JSON document.




-Hoss

Reply via email to