ISOLatin1AccentFilter fails to preserve positionIncrement: LUCENE-583

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@410960 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-06-01 21:22:29 +00:00
parent 1d6371df43
commit 2fd8f54e79
1 changed files with 3 additions and 4 deletions

View File

@ -30,10 +30,9 @@ public class ISOLatin1AccentFilter extends TokenFilter {
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;
}
/**