[ 
https://issues.apache.org/jira/browse/LUCENE-9634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17300733#comment-17300733
 ] 

Zach Chen commented on LUCENE-9634:
-----------------------------------

Hi Dawid, thanks for the advice! I played around a bit and opened a draft PR 
with one possible solution that requires smaller amount of changes in 
signature. I still feel it's quite fragile though, so I'll continue explore 
other options. 

> Highlighting of degenerate spans on fields *with offsets* doesn't work 
> properly
> -------------------------------------------------------------------------------
>
>                 Key: LUCENE-9634
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9634
>             Project: Lucene - Core
>          Issue Type: Sub-task
>            Reporter: Dawid Weiss
>            Assignee: Dawid Weiss
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Match highlighter works fine with degenerate interval positions when 
> {{OffsetsFromPositions}} strategy is used to compute offsets but will show 
> incorrect offset ranges if offsets are read from directly from the 
> {{MatchIterator}} ({{OffsetsFromMatchIterator}}).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to