lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (LUCENE-627) highlighter problems with overlapping tokens
Date Thu, 28 Sep 2006 21:12:51 GMT
    [ ] 
Yonik Seeley commented on LUCENE-627:

I agree with Kerang about the expected behavior (of this specific case at least).
The test case of mine quoted above was not what I was shooting for, but was an acceptable
unintended side-effect of fixing the other cases.

So I'm fine with this case being changed to
    query = new QueryParser("text",new WhitespaceAnalyzer()).parse("hi speed");
    highlighter = new Highlighter(new QueryScorer(query));
    result = highlighter.getBestFragments(getTS2(), s, 3, "...");
    assertEquals("<B>Hi</B>-<B>Speed</B>10 foo",result);

> 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
>             Fix For: 2.0.1
>         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