lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Harwood (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-627) highlighter problems with overlapping tokens
Date Thu, 13 Jul 2006 20:26:31 GMT
    [ http://issues.apache.org/jira/browse/LUCENE-627?page=comments#action_12420923 ] 

Mark Harwood commented on LUCENE-627:
-------------------------------------

Position increments wrong in my  above code but the solution of sequencing start offsets correctly
still holds true:

	        t = new Token("ipod",0,4);
	        t.setPositionIncrement(0);
	        lst.add(t);
	        t = new Token("i",0,1);
	        t.setPositionIncrement(0);
	        lst.add(t);
	        t = new Token("pod",1,4);
	        lst.add(t);
	        t = new Token("foo",5,8);
	        lst.add(t);


> highlighter problems with overlapping tokens
> --------------------------------------------
>
>          Key: LUCENE-627
>          URL: http://issues.apache.org/jira/browse/LUCENE-627
>      Project: Lucene - Java
>         Type: Bug

>   Components: Other
>     Versions: 2.0.1
>     Reporter: Yonik Seeley

>
> 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 http://issues.apache.org/jira/browse/SOLR-24

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message