lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mharw...@apache.org
Subject svn commit: r279078 - /lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenGroup.java
Date Tue, 06 Sep 2005 19:39:13 GMT
Author: mharwood
Date: Tue Sep  6 12:38:12 2005
New Revision: 279078

URL: http://svn.apache.org/viewcvs?rev=279078&view=rev
Log:
Changed TokenGroup.isDistinct after problems reported with JapaneseAnalyzer (no gaps between
tokens)

Modified:
    lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenGroup.java

Modified: lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenGroup.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenGroup.java?rev=279078&r1=279077&r2=279078&view=diff
==============================================================================
--- lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenGroup.java
(original)
+++ lucene/java/trunk/contrib/highlighter/src/java/org/apache/lucene/search/highlight/TokenGroup.java
Tue Sep  6 12:38:12 2005
@@ -54,7 +54,7 @@
 	
 	boolean isDistinct(Token token)
 	{
-		return token.startOffset()>endOffset;
+		return token.startOffset()>=endOffset;
 	}
 	
 	



Mime
View raw message