public abstract class TokenFilterFactory extends AbstractAnalysisFactory
TokenFilter
instances.LUCENE_MATCH_VERSION_PARAM, luceneMatchVersion
Modifier | Constructor and Description |
---|---|
protected |
TokenFilterFactory(Map<String,String> args)
Initialize this factory via a set of key-value pairs.
|
Modifier and Type | Method and Description |
---|---|
static Set<String> |
availableTokenFilters()
returns a list of all available tokenfilter names from context classpath
|
abstract TokenStream |
create(TokenStream input)
Transform the specified input TokenStream
|
static TokenFilterFactory |
forName(String name,
Map<String,String> args)
looks up a tokenfilter by name from context classpath
|
static Class<? extends TokenFilterFactory> |
lookupClass(String name)
looks up a tokenfilter class by name from context classpath
|
static void |
reloadTokenFilters(ClassLoader classloader)
Reloads the factory list from the given
ClassLoader . |
get, 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, splitFileNames
public static TokenFilterFactory forName(String name, Map<String,String> args)
public static Class<? extends TokenFilterFactory> lookupClass(String name)
public static Set<String> availableTokenFilters()
public static void reloadTokenFilters(ClassLoader classloader)
ClassLoader
.
Changes to the factories are visible after the method ends, all
iterators (availableTokenFilters()
,...) stay consistent.
NOTE: Only new factories are added, existing ones are never removed or replaced.
This method is expensive and should only be called for discovery of new factories on the given classpath/classloader!
public abstract TokenStream create(TokenStream input)
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.