public final class CommonGramsQueryFilter
extends org.apache.lucene.analysis.TokenFilter
Constructor and Description |
---|
CommonGramsQueryFilter(CommonGramsFilter input)
Constructs a new CommonGramsQueryFilter based on the provided CommomGramsFilter
|
Modifier and Type | Method and Description |
---|---|
boolean |
incrementToken()
Output bigrams whenever possible to optimize queries.
|
boolean |
isGramType()
Convenience method to check if the current type is a gram type
|
void |
reset() |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
public CommonGramsQueryFilter(CommonGramsFilter input)
input
- CommonGramsFilter the QueryFilter will usepublic void reset() throws IOException
reset
in class org.apache.lucene.analysis.TokenFilter
IOException
public boolean incrementToken() throws IOException
incrementToken
in class org.apache.lucene.analysis.TokenStream
IOException
public boolean isGramType()
true
if the current type is a gram type, false
otherwise