AnalysisModule.AnalysisProvider<T>
PreConfiguredCharFilter
, PreConfiguredTokenFilter
, PreConfiguredTokenizer
public abstract class PreConfiguredAnalysisComponent<T> extends java.lang.Object implements AnalysisModule.AnalysisProvider<T>
Modifier | Constructor | Description |
---|---|---|
protected |
PreConfiguredAnalysisComponent(java.lang.String name,
PreBuiltCacheFactory.CachingStrategy cache) |
Modifier and Type | Method | Description |
---|---|---|
protected abstract T |
create(Version version) |
|
T |
get(IndexSettings indexSettings,
Environment environment,
java.lang.String name,
Settings settings) |
Creates a new analysis provider.
|
java.lang.String |
getName() |
The name of the analysis component in the API.
|
get, requiresAnalysisSettings
protected PreConfiguredAnalysisComponent(java.lang.String name, PreBuiltCacheFactory.CachingStrategy cache)
public T get(IndexSettings indexSettings, Environment environment, java.lang.String name, Settings settings) throws java.io.IOException
AnalysisModule.AnalysisProvider
get
in interface AnalysisModule.AnalysisProvider<T>
indexSettings
- the index settings for the index this provider is created forenvironment
- the nodes environment to load resources from persistent storagename
- the name of the analysis componentsettings
- the component specific settings without context prefixesjava.io.IOException
- if an IOException
occurspublic java.lang.String getName()