Return-Path: Delivered-To: apmail-lucene-java-commits-archive@www.apache.org Received: (qmail 31553 invoked from network); 1 Jun 2006 21:22:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Jun 2006 21:22:51 -0000 Received: (qmail 33801 invoked by uid 500); 1 Jun 2006 21:22:51 -0000 Delivered-To: apmail-lucene-java-commits-archive@lucene.apache.org Received: (qmail 33780 invoked by uid 500); 1 Jun 2006 21:22:51 -0000 Mailing-List: contact java-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-commits@lucene.apache.org Received: (qmail 33767 invoked by uid 99); 1 Jun 2006 21:22:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 14:22:51 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 14:22:50 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 64E251A983A; Thu, 1 Jun 2006 14:22:30 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r410960 - /lucene/java/trunk/src/java/org/apache/lucene/analysis/ISOLatin1AccentFilter.java Date: Thu, 01 Jun 2006 21:22:30 -0000 To: java-commits@lucene.apache.org From: yonik@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060601212230.64E251A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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; } /**