lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Commented] (LUCENE-6471) Highlighter mergeContiguousFragments shouldn't merge 0-score fragments
Date Mon, 10 Jul 2017 13:35:00 GMT


David Smiley commented on LUCENE-6471:

[~jrichards22] Have you considered the UnifiedHighlighter?

> Highlighter mergeContiguousFragments shouldn't merge 0-score fragments
> ----------------------------------------------------------------------
>                 Key: LUCENE-6471
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/highlighter
>            Reporter: David Smiley
>            Priority: Minor
> Highlighter.mergeContiguousFragments merges adjacent fragments it is given.  But it is
given a list of fragments that do not necessarily have embedded highlights (e.g. have a score
of 0), and so it could grow a fragment needlessly.  I never figured out why this old highlighter
keeps around such fragments instead of eagerly tossing them when the fragment completes, which
is what I think it should do.  That would address this problem and might make things faster.
 I'm not sure if any highlighter user wants the non-scoring fragments though.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message