LengthFilter
@Deprecated public final class Lucene43LengthFilter extends Lucene43FilteringTokenFilter
AttributeSource.State
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Constructor and Description |
---|
Lucene43LengthFilter(boolean enablePositionIncrements,
TokenStream in,
int min,
int max)
Deprecated.
Build a filter that removes words that are too long or too
short from the text.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept()
Deprecated.
Override this method and return if the current input token should be returned by
Lucene43FilteringTokenFilter.incrementToken() . |
incrementToken, reset
close, end
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
public Lucene43LengthFilter(boolean enablePositionIncrements, TokenStream in, int min, int max)
public boolean accept() throws IOException
Lucene43FilteringTokenFilter
Lucene43FilteringTokenFilter.incrementToken()
.accept
in class Lucene43FilteringTokenFilter
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.