lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Updated: (LUCENE-627) highlighter problems with overlapping tokens
Date Fri, 14 Jul 2006 20:42:14 GMT
     [ ]

Yonik Seeley updated LUCENE-627:

    Attachment: highlight_overlap.diff

Here is a patch that makes the tests work after tokens are re-ordered.
I basically keep track of the start and end offsets of what matches, not just of the TokenGroup,
so highlighting is more specific.

Sorry about the messy patch - my IDE collapses the tabs so I don't even see them (I only realize
there are tabs after I do a diff).

> highlighter problems with overlapping tokens
> --------------------------------------------
>                 Key: LUCENE-627
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.1
>            Reporter: Yonik Seeley
>         Attachments: highlight_overlap.diff
> The lucene highlighter has problems when tokens that overlap are generated.
> For example, if analysis of iPod generates the tokens "i", "pod", "ipod" (with pod and
ipod in the same position),
> then the highlighter will output this as iipod, regardless of if any of those tokens
are highlighted.
> Discovered via

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


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

View raw message