Package org.apache.lucene.analysis.util
Class AbstractAnalysisFactory
java.lang.Object
org.apache.lucene.analysis.util.AbstractAnalysisFactory
- Direct Known Subclasses:
CharFilterFactory
,TokenFilterFactory
,TokenizerFactory
Abstract parent class for analysis factories
TokenizerFactory
,
TokenFilterFactory
and CharFilterFactory
.
The typical lifecycle for a factory consumer is:
- Create factory via its constructor (or via XXXFactory.forName)
- (Optional) If the factory uses resources such as files,
ResourceLoaderAware.inform(ResourceLoader)
is called to initialize those resources. - Consumer calls create() to obtain instances.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionget
(Map<String, String> args, String name, Collection<String> allowedValues, String defaultVal, boolean caseSensitive) char
final Version
Returns whitespace- and/or comma-separated set of values, or null if none are foundboolean
require
(Map<String, String> args, String name, Collection<String> allowedValues, boolean caseSensitive) char
requireChar
(Map<String, String> args, String name) void
setExplicitLuceneMatchVersion
(boolean isExplicitLuceneMatchVersion)
-
Field Details
-
LUCENE_MATCH_VERSION_PARAM
- See Also:
-
-
Method Details
-
getOriginalArgs
-
getLuceneMatchVersion
-
require
-
require
-
require
-
get
-
get
-
get
-
get
-
get
-
requireChar
-
getChar
-
getSet
Returns whitespace- and/or comma-separated set of values, or null if none are found -
getClassArg
- Returns:
- the string used to specify the concrete class name in a serialized representation: the class arg.
If the concrete class name was not specified via a class arg, returns
getClass().getName()
.
-
isExplicitLuceneMatchVersion
public boolean isExplicitLuceneMatchVersion() -
setExplicitLuceneMatchVersion
public void setExplicitLuceneMatchVersion(boolean isExplicitLuceneMatchVersion)
-