lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r410960 - /lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java
Date Thu, 01 Jun 2006 21:22:30 GMT
Author: yonik
Date: Thu Jun  1 14:22:29 2006
New Revision: 410960

URL: http://svn.apache.org/viewvc?rev=410960&view=rev
Log:
ISOLatin1AccentFilter fails to preserve positionIncrement: LUCENE-583

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java?rev=410960&r1=410959&r2=410960&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java Thu Jun
 1 14:22:29 2006
@@ -30,10 +30,9 @@
 
 	public final Token next() throws java.io.IOException {
 		final Token t = input.next();
-		if (t == null)
-			return null;
-		// Return a token with filtered characters.
-		return new Token(removeAccents(t.termText()), t.startOffset(), t.endOffset(), t.type());
+    if (t != null)
+      t.setTermText(removeAccents(t.termText()));
+    return t;
 	}
 
 	/**



Mime
View raw message