On 15/09/2011 11:12, Uwe Schindler wrote:
Hi,
In your incrementToken method, you differs in both implementations:
The original one uses setTermBuffer(), but the new one only resizes the
buffer, but never changes it.
Thankyou, now working, changed to
@Override
public boolean incrementToken() throws IOException {
if (!input.incrementToken())
return false;
final char[] buffer = termAttr.buffer();
final int length = termAttr.length();
if (removeAccents(buffer, length)) {
termAttr.copyBuffer(output,0,outputPos);
}
return true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org