lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Lutze (JIRA)" <>
Subject [jira] [Created] (SOLR-3952) TextResponseWriter/XMLWriter: Make escaping deactivatable
Date Tue, 16 Oct 2012 12:23:03 GMT
Sebastian Lutze created SOLR-3952:

             Summary: TextResponseWriter/XMLWriter: Make escaping deactivatable
                 Key: SOLR-3952
             Project: Solr
          Issue Type: Improvement
          Components: Response Writers
    Affects Versions: 1.4
            Reporter: Sebastian Lutze
            Priority: Minor
             Fix For: 4.1
         Attachments: 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 ...


... rather than in escaped sequences:


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

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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message