You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 05:56:25 UTC
[jira] [Updated] (SOLR-3952) TextResponseWriter/XMLWriter: Make
escaping deactivatable
[ https://issues.apache.org/jira/browse/SOLR-3952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley updated SOLR-3952:
-------------------------------
Fix Version/s: (was: 4.7)
4.8
> TextResponseWriter/XMLWriter: Make escaping deactivatable
> ---------------------------------------------------------
>
> Key: SOLR-3952
> URL: https://issues.apache.org/jira/browse/SOLR-3952
> Project: Solr
> Issue Type: Improvement
> Components: Response Writers
> Affects Versions: 3.6
> Reporter: Sebastian Lutze
> Priority: Minor
> Labels: escaping, response, xml
> Fix For: 4.8
>
> Attachments: disable_escape.patch, disable_escape.patch
>
>
> Since we have full control over what is stored in our indexes, we want to retrieve highlighted terms or phrases in "real" XML-tags ...
> {code:xml}
> <str>
> <em>Napoleon</em>
> </str>
> {code}
> ... rather than in escaped sequences:
> {code:xml}
> <str>
> <em>Napoleon</em>
> </str>
> {code}
> Until now I haven't discovered any solution to solve this problem out-of-the-box. We patched together a very crude workaround involving Cocoon's ServletService, a XSLT-stylesheet and disableOutputEscaping="yes".
> Therefore this patch provides:
> - a field doEscape in TextResponseWriter and corresponding getters/setters
> - support for a request-parameter "escape=off" to disable escaping
> I'm not sure if I have chosen the optimal approach to address this issue or if the issue is even a issue. Maybe there is a better way with Formatters/Encoders or something else?
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org