You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Laimonas Simutis (JIRA)" <ji...@apache.org> on 2019/01/24 22:54:01 UTC

[jira] [Closed] (LUCENENET-507) CLONE - FastVectorHighlighter create fragment only with match at the beginning

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

Laimonas Simutis closed LUCENENET-507.
--------------------------------------
    Resolution: Incomplete

Closing stale ticket.

> CLONE - FastVectorHighlighter create fragment only with match at the beginning
> ------------------------------------------------------------------------------
>
>                 Key: LUCENENET-507
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-507
>             Project: Lucene.Net
>          Issue Type: Improvement
>          Components: Lucene.Net Contrib
>    Affects Versions: Lucene.Net 2.9.4g
>            Reporter: David Wilson
>            Priority: Minor
>         Attachments: FragListBuilder.patch, PatchForSimpleFragListBuilder.patch
>
>
> When you use FastVectorHighlighter fragments returned have the match at the beginning. In most situation it is much more useful to create fragments with the match in the middle. I've included a really trivial patch to enable this with a specialized constructor of the SimpleFragListBuilder 
> Es: FastVectorHighlighter hilighter = new FastVectorHighlighter(true, true, new SimpleFragListBuilder(true), new SimpleFragmentsBuilder());
> The true parameter to SimpleFragListBuilder is named matchInTheMiddle so it has a descriptive name. Probably it would be useful to create an enum to place the match at: beginning, middle, end.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)