Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 452C2D6C9 for ; Tue, 9 Oct 2012 00:20:04 +0000 (UTC) Received: (qmail 77053 invoked by uid 500); 9 Oct 2012 00:20:03 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 76970 invoked by uid 500); 9 Oct 2012 00:20:03 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 76960 invoked by uid 99); 9 Oct 2012 00:20:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 00:20:03 +0000 Date: Tue, 9 Oct 2012 00:20:02 +0000 (UTC) From: "Yonik Seeley (JIRA)" To: dev@lucene.apache.org Message-ID: <734430179.11658.1349742003009.JavaMail.jiratomcat@arcas> In-Reply-To: <2106282844.130644.1348694107969.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (SOLR-3897) Preserve multi-value fields during hit highlighting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-3897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13471974#comment-13471974 ] Yonik Seeley commented on SOLR-3897: ------------------------------------ preserveMulti implies getting values back for every field value, hence we always should regardless of what snippets is set to. If we aren't changing the request format, it still seems like the most sane thing is to show all field values and have exactly one snippet per field value. > 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 > > > 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