lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher (JIRA)" <>
Subject [jira] [Commented] (SOLR-3897) Preserve multi-value fields during hit highlighting
Date Wed, 03 Oct 2012 14:00:16 GMT


Erik Hatcher commented on SOLR-3897:

bq. Seems like for preserveMulti=true, one should get all field values regardless of the setting
of snippets.  Should the number of snippets per field value be capped at 1 when preserveMulti==true,
or should we consider snippets to be per value rather than per field?

I think each field value, when preserveMulti=true, should be considered separately and all
highlighting parameters for that field should apply to each field value.  Number of fragments,
for example, should be per field value instance.  And I suppose this necessitates another
array level in the response?   

Sorry if this got a fair bit more complicated than it started.  After pondering this after
the original patch was committed, I realized there'd be some confusion between field values
and fragments.
> Preserve multi-value fields during hit highlighting
> ---------------------------------------------------
>                 Key: SOLR-3897
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>          Components: highlighter
>            Reporter: Joel Bernstein
>            Assignee: Yonik Seeley
>            Priority: Minor
>             Fix For: 4.1
>         Attachments: SOLR-3897.patch, SOLR-3897.patch
> The behavior of the default Solr hit highlighter on multi-value fields is to only return
the values that have a hit and sort them by score.
> This ticket supplies a patch that adds a new highlight parameter called "preserveMulti"
which can be used on a feild by field basis to return all of the values in their original
order. If this parameter is used, the values that have a hit are highlighted and the ones
that do not contain a hit are returned un-highlighted.
> The "preserveMulti" parameter works with the default standard highlighter and follows
the standard highlighting conventions.
> Sample usage for a field called "cat":

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