public abstract class ConditionalTokenFilterFactory extends TokenFilterFactory implements ResourceLoaderAware
ConditionalTokenFilter instancesLUCENE_MATCH_VERSION_PARAM, luceneMatchVersion| Modifier | Constructor and Description |
|---|---|
protected |
ConditionalTokenFilterFactory(Map<String,String> args) |
| Modifier and Type | Method and Description |
|---|---|
TokenStream |
create(TokenStream input)
Transform the specified input TokenStream
|
protected abstract ConditionalTokenFilter |
create(TokenStream input,
Function<TokenStream,TokenStream> inner)
Modify the incoming
TokenStream with a ConditionalTokenFilter |
protected void |
doInform(ResourceLoader loader)
Initialises this component with the corresponding
ResourceLoader |
void |
inform(ResourceLoader loader)
Initializes this component with the provided ResourceLoader
(used for loading classes, files, etc).
|
void |
setInnerFilters(List<TokenFilterFactory> innerFilters)
Set the inner filter factories to produce the
TokenFilters that will be
wrapped by the ConditionalTokenFilter |
availableTokenFilters, forName, lookupClass, reloadTokenFiltersget, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNamespublic void setInnerFilters(List<TokenFilterFactory> innerFilters)
TokenFilters that will be
wrapped by the ConditionalTokenFilterpublic TokenStream create(TokenStream input)
TokenFilterFactorycreate in class TokenFilterFactorypublic final void inform(ResourceLoader loader) throws IOException
ResourceLoaderAwareinform in interface ResourceLoaderAwareIOExceptionprotected void doInform(ResourceLoader loader) throws IOException
ResourceLoaderIOExceptionprotected abstract ConditionalTokenFilter create(TokenStream input, Function<TokenStream,TokenStream> inner)
TokenStream with a ConditionalTokenFilterCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.