lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: How to tell the highlighter not to escape?
Date Thu, 04 Jan 2007 00:46:40 GMT

: > However I still think the highlighter should return unescaped tags for
: > highlighting. There is IMO no benefit for the current behavior.

the advantage is that the XmlResponseWriter has a duty to ensure that it
produces wellformed XML regardless of configuration, data, or input.

: The problems all stem from the simple highlighter formatter mixing
: highlighting info directly into the string to be highlighted.  It's
: not a 100% bulletproof solution because now you can't tell original
: field value from markup.

right ... the best you can do is pick markup that you are confident
doesn't appear in *your* data (which is why the hl.simple.pre and args exist)

Once upon a time, i speculated on a more "advanced" format for returning
highlighter info that was never implimented, but could still be usefull --
not just for situations like this, but in general for extracting more info
about the orrigin of the snippets...


View raw message