You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2015/05/07 22:34:59 UTC
[jira] [Created] (LUCENE-6471) Highlighter mergeContiguousFragments
shouldn't merge 0-score fragments
David Smiley created LUCENE-6471:
------------------------------------
Summary: Highlighter mergeContiguousFragments shouldn't merge 0-score fragments
Key: LUCENE-6471
URL: https://issues.apache.org/jira/browse/LUCENE-6471
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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org