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 java.lang.Object
implements AnalysisModule.AnalysisProvider<T>
Shared implementation for pre-configured analysis components.
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public T get​(IndexSettings indexSettings, Environment environment, java.lang.String name, Settings settings) throws java.io.IOException
      Description copied from interface: AnalysisModule.AnalysisProvider
      Creates a new analysis provider.
      Specified by:
      get in interface AnalysisModule.AnalysisProvider<T>
      Parameters:
      indexSettings - the index settings for the index this provider is created for
      environment - the nodes environment to load resources from persistent storage
      name - the name of the analysis component
      settings - the component specific settings without context prefixes
      Returns:
      a new provider instance
      Throws:
      java.io.IOException - if an IOException occurs
    • getName

      public java.lang.String getName()
      The name of the analysis component in the API.
    • create

      protected abstract T create​(Version version)