Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2730

Highlighting is not HTML-encoded when fallback to alternate field

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: highlighter
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                janhoy Jan Høydahl
                Reporter:
                janhoy Jan Høydahl
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: