mirror of https://github.com/apache/lucene.git
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:
parent
1d6371df43
commit
2fd8f54e79
|
@ -30,10 +30,9 @@ public class ISOLatin1AccentFilter extends TokenFilter {
|
||||||
|
|
||||||
public final Token next() throws java.io.IOException {
|
public final Token next() throws java.io.IOException {
|
||||||
final Token t = input.next();
|
final Token t = input.next();
|
||||||
if (t == null)
|
if (t != null)
|
||||||
return null;
|
t.setTermText(removeAccents(t.termText()));
|
||||||
// Return a token with filtered characters.
|
return t;
|
||||||
return new Token(removeAccents(t.termText()), t.startOffset(), t.endOffset(), t.type());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue