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,
java.util.Map<?,java.lang.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, toString
public StemmerOverrideFilter(org.apache.lucene.util.Version matchVersion, org.apache.lucene.analysis.TokenStream input, java.util.Map<?,java.lang.String> dictionary)
dictionary
.
Any dictionary-stemmed terms will be marked with KeywordAttribute
so that they will not be stemmed with stemmers down the chain.
Copyright © 2000-2023 Apache Software Foundation. All Rights Reserved.