lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laimonas Simutis (JIRA)" <>
Subject [jira] [Closed] (LUCENENET-505) FastVectorHighlighter create fragment only with match at the beginning
Date Thu, 24 Jan 2019 22:53:00 GMT


Laimonas Simutis closed LUCENENET-505.
    Resolution: Won't Fix

Closing stale ticket.

> FastVectorHighlighter create fragment only with match at the beginning
> ----------------------------------------------------------------------
>                 Key: LUCENENET-505
>                 URL:
>             Project: Lucene.Net
>          Issue Type: Improvement
>          Components: Lucene.Net Contrib
>    Affects Versions: Lucene.Net 2.9.4g
>            Reporter: Ricci Gian Maria
>            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
> 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,

This message was sent by Atlassian JIRA

View raw message