[ https://issues.apache.org/jira/browse/SOLR-3897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joel Bernstein updated SOLR-3897: --------------------------------- Description: 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 was: 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 returns 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 > 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 > Affects Versions: 4.0-BETA > Reporter: Joel Bernstein > Priority: Critical > Fix For: 4.0-BETA > > > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org