org.apache.lucene.analysis.TokenStream.end()
public void end() throws IOException {
clearAttributes(); // LUCENE-3849: don't consume dirty atts
if (hasAttribute(PositionIncrementAttribute.class)) {
getAttribute(PositionIncrementAttribute.class).setPositionIncrement(0);
}
}
This does not need IOException.
--
Lance Norskog
[email protected]
