[
https://issues.apache.org/jira/browse/LUCENE-4825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley closed LUCENE-4825.
--------------------------------
Resolution: Fixed
I'm closing this issue. The PostingsHighlighter effectively evolved into the
UnifiedHighlighter ( LUCENE-7438 ) which supports this feature. It's optional.
The feature is isolated pretty well into PhraseHelper. YMMV but my benchmarks
found phrase highlighting to actually _increase_ performance. I believe it's
because there are fewer actual passage candidates as they are filtered
before-hand, and this means fewer invocations of the BreakIterator. The JDK's
BreakIterator impls seem to be a large cost of highlighting.
> PostingsHighlighter support for positional queries
> --------------------------------------------------
>
> Key: LUCENE-4825
> URL: https://issues.apache.org/jira/browse/LUCENE-4825
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/highlighter
> Affects Versions: 4.2
> Reporter: Luca Cavanna
>
> I've been playing around with the brand new PostingsHighlighter. I'm really
> happy with the result in terms of quality of the snippets and performance.
> On the other hand, I noticed it doesn't support positional queries. If you
> make a span query, for example, all the single terms will be highlighted,
> even though they haven't contributed to the match. That reminds me of the
> difference between the QueryTermScorer and the QueryScorer (using the
> standard Highlighter).
> I've been trying to adapt what the QueryScorer does, especially the
> extraction of the query terms together with their positions (what
> WeightedSpanTermExtractor does). Next step would be to take that information
> into account within the formatter and highlight only the terms that actually
> contributed to the match. I'm not quite ready yet with a patch to contribute
> this back, but I certainly intend to do so. That's why I opened the issue and
> in the meantime I would like to hear what you guys think about it and
> discuss how best we can fix it. I think it would be a big improvement for
> this new highlighter, which is already great!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]