lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-3897) Preserve multi-value fields during hit highlighting
Date Tue, 09 Oct 2012 15:30:03 GMT

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

Yonik Seeley updated SOLR-3897:
-------------------------------

    Attachment: SOLR-3897_snippets.patch

Here's a patch that always lists all field values, regardless of the value of snippets.

Given that the default value of snippets is 1, this should work fine - there will be exactly
one snippet generated per field value.

Note that we currently show a snippet for every field value even if nothing in the field matched.
 I'm not sure if this is the desirable behavior or not.  For short fields, the client could
just return the field values in the document and use that if the highlighter section was missing.
 But perhaps snippet generation might still be useful for long fields.
                
> Preserve multi-value fields during hit highlighting
> ---------------------------------------------------
>
>                 Key: SOLR-3897
>                 URL: https://issues.apache.org/jira/browse/SOLR-3897
>             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, SOLR-3897_snippets.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":
> f.cat.hl.preserveMulti=true

--
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: 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


Mime
View raw message