Package org.elasticsearch.index.analysis
Class PreConfiguredAnalysisComponent<T>
java.lang.Object
org.elasticsearch.index.analysis.PreConfiguredAnalysisComponent<T>
- All Implemented Interfaces:
AnalysisModule.AnalysisProvider<T>
- Direct Known Subclasses:
PreBuiltAnalyzerProviderFactory
,PreConfiguredCharFilter
,PreConfiguredTokenFilter
,PreConfiguredTokenizer
public abstract class PreConfiguredAnalysisComponent<T>
extends Object
implements AnalysisModule.AnalysisProvider<T>
Shared implementation for pre-configured analysis components.
-
Field Summary
Modifier and TypeFieldDescriptionprotected PreBuiltCacheFactory.PreBuiltCache<T>
protected String
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.indices.analysis.AnalysisModule.AnalysisProvider
get, requiresAnalysisSettings
-
Field Details
-
name
-
cache
-
-
Constructor Details
-
PreConfiguredAnalysisComponent
-
PreConfiguredAnalysisComponent
-
-
Method Details
-
get
public T get(IndexSettings indexSettings, Environment environment, String name, Settings settings) throws IOExceptionDescription copied from interface:AnalysisModule.AnalysisProvider
Creates a new analysis provider.- Specified by:
get
in interfaceAnalysisModule.AnalysisProvider<T>
- Parameters:
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 prefixes- Returns:
- a new provider instance
- Throws:
IOException
- if anIOException
occurs
-
getName
The name of the analysis component in the API. -
create
-