lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (JIRA) <>
Subject [jira] [Updated] (SOLR-8583) Apply highlighting to hl.alternateField
Date Thu, 26 May 2016 11:59:13 GMT


Jan Høydahl updated SOLR-8583:
    Attachment: SOLR-8583.patch

The reason for difference in length is probably in how the fragmenters work. Tried out some
more sizes and it changes, although not at the limits I expected for Simple highlighter.

Here's a new patch using only {{FRAGSIZE}} in limiting maxAlternateFieldLength, instead of
also using {{MAX_CHARS}}, as it did not add any value.

> Apply highlighting to hl.alternateField
> ---------------------------------------
>                 Key: SOLR-8583
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: highlighter
>    Affects Versions: 5.4
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>             Fix For: 6.1
>         Attachments: SOLR-8583.patch, SOLR-8583.patch, SOLR-8583.patch, SOLR-8583.patch
> Today, you can configure hl.alternateField for highlighter to display if no snippets
were produced from original field. But the contents of the fallback field is output without
highlighting the original query terms.
> This issue will cause alternate field to be highlighted with no snippet generation, and
still respect max length. You can turn it off using new param {{hl.highlightAlternate=false}}.
Supported highlighters: Simple, FVH

This message was sent by Atlassian JIRA

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

View raw message