Package org.opensearch.index.analysis
Class PreConfiguredAnalysisComponent<T>
java.lang.Object
org.opensearch.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.
- Opensearch.internal:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PreBuiltCacheFactory.PreBuiltCache
<T> protected final String
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
create
(org.opensearch.Version version) get
(IndexSettings indexSettings, Environment environment, String name, Settings settings) Creates a new analysis provider.getName()
The name of the analysis component in the API.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensearch.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 IOException 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:
IOException
- if anIOException
occurs
-
getName
The name of the analysis component in the API. -
create
-