(11/06/17 0:15), Massimo Schiavon wrote:
I have an index with various fields and I want to highlight query matchings on "title" and "content" fields. These fields could contain html tags so I've configured HtmlFormatter for highlighting. The problem is that if the query doesn't match the text of the field, solr returns the value of configured alternate field without encoding it. Is there any way to get encoded value also for alternate fields? And in general there is a way to do html escaping on values returned from a response writer?
Massimo, At first impression, I think the requirement is reasonable. As long as we support HtmlEncoder, we had better support it with alternateField option. Please open a jira issue, and if possible, suggest appropriate option and attach a patch (patch is not required, but it is very helpful). koji -- http://www.rondhuit.com/en/