You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2011/08/25 17:05:30 UTC

[jira] [Closed] (SOLR-2730) Highlighting is not HTML-encoded when fallback to alternate field

     [ https://issues.apache.org/jira/browse/SOLR-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Høydahl closed SOLR-2730.
-----------------------------

    Resolution: Duplicate

> Highlighting is not HTML-encoded when fallback to alternate field
> -----------------------------------------------------------------
>
>                 Key: SOLR-2730
>                 URL: https://issues.apache.org/jira/browse/SOLR-2730
>             Project: Solr
>          Issue Type: Bug
>          Components: highlighter
>            Reporter: Jan Høydahl
>
> When highlighter finds matches in the field and returns the snippets, all other text returned is HTML-encoded, i.e. a <br> in the field will be displayed as a literal tag instead of causing a break.
> But when hl.alternateField is used, and the query does not match any words in the field, the alternate fallback field is returned as is, without being HTML-encoded.
> This is inconsistent and causes problems in the client. HTML-encoding in the client is not an option since the highlighted snippets then would break.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org