public class StemmerOverrideFilterFactory extends BaseTokenFilterFactory implements ResourceLoaderAware
StemmerOverrideFilter
.
<fieldType name="text_dicstem" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.WhitespaceTokenizerFactory"/> <filter class="solr.StemmerOverrideFilterFactory" dictionary="dictionary.txt" ignoreCase="false"/> </analyzer> </fieldType>
Modifier and Type | Field and Description |
---|---|
private org.apache.lucene.analysis.CharArrayMap<java.lang.String> |
dictionary |
private boolean |
ignoreCase |
log
args, luceneMatchVersion
Constructor and Description |
---|
StemmerOverrideFilterFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.TokenStream |
create(org.apache.lucene.analysis.TokenStream input)
Transform the specified input TokenStream
|
void |
inform(ResourceLoader loader) |
boolean |
isIgnoreCase() |
assureMatchVersion, getArgs, getBoolean, getBoolean, getInt, getInt, getInt, getSnowballWordSet, getWordSet, init, warnDeprecated
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArgs, init
private org.apache.lucene.analysis.CharArrayMap<java.lang.String> dictionary
private boolean ignoreCase
public void inform(ResourceLoader loader)
inform
in interface ResourceLoaderAware
public boolean isIgnoreCase()
public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream input)
TokenFilterFactory
create
in interface TokenFilterFactory