public final class StemmerOverrideFilter
extends org.apache.lucene.analysis.TokenFilter
KeywordAttribute aware stemmer
with custom dictionary-based stemming.| Constructor and Description |
|---|
StemmerOverrideFilter(org.apache.lucene.util.Version matchVersion,
org.apache.lucene.analysis.TokenStream input,
Map<?,String> dictionary)
Create a new StemmerOverrideFilter, performing dictionary-based stemming
with the provided
dictionary. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
incrementToken() |
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toStringpublic StemmerOverrideFilter(org.apache.lucene.util.Version matchVersion,
org.apache.lucene.analysis.TokenStream input,
Map<?,String> dictionary)
dictionary.
Any dictionary-stemmed terms will be marked with KeywordAttribute
so that they will not be stemmed with stemmers down the chain.
public boolean incrementToken()
throws IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.