[
https://issues.apache.org/jira/browse/LUCENE-6485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14561638#comment-14561638
]
ASF subversion and git services commented on LUCENE-6485:
---------------------------------------------------------
Commit 1682115 from [~rcmuir] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1682115 ]
LUCENE-6485: Add CustomSeparatorBreakIterator
> Add a custom separator break iterator
> -------------------------------------
>
> Key: LUCENE-6485
> URL: https://issues.apache.org/jira/browse/LUCENE-6485
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Luca Cavanna
> Attachments: LUCENE-6485.patch
>
>
> Lucene currently includes a WholeBreakIterator used to highlight entire
> fields using the postings highlighter, without breaking their content into
> sentences.
> I would like to contribute a CustomSeparatorBreakIterator that breaks when a
> custom char separator is found in the text. This can be used for instance
> when wanting to highlight entire fields, value per value. One can subclass
> PostingsHighlighter and have getMultiValueSeparator return a control
> character, like U+0000 , then use the custom break iterator to break on
> U+0000 so that one snippet per value will be generated.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]