Package org.elasticsearch.index.analysis
Class PreConfiguredAnalysisComponent<T>
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
implements AnalysisModule.AnalysisProvider<T>
Shared implementation for pre-configured analysis components.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
name, PreBuiltCacheFactory.CachingStrategy cache)
protected
name, PreBuiltCacheFactory.PreBuiltCache<T> cache)
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
get(IndexSettings indexSettings, Environment environment, name, Settings settings)
Creates a new analysis provider.getName()
The name of the analysis component in the API.Methods inherited from class java.lang.
, , , , , , , , , ,
Methods inherited from interface org.elasticsearch.indices.analysis.AnalysisModule.AnalysisProvider
get, requiresAnalysisSettings
-
Field Details
-
name
protected final name -
cache
-
-
Constructor Details
-
PreConfiguredAnalysisComponent
-
PreConfiguredAnalysisComponent
-
-
Method Details
-
get
Description 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:
- if an occurs
-
getName
public getName()The name of the analysis component in the API. -
create
-