Class AbstractIndexAnalyzerProvider<T extends org.apache.lucene.analysis.Analyzer>

java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider<T>
All Implemented Interfaces:
Provider<T>, AnalyzerProvider<T>, IndexComponent
Direct Known Subclasses:
CustomAnalyzerProvider, CustomNormalizerProvider, KeywordAnalyzerProvider, LowercaseNormalizerProvider, SimpleAnalyzerProvider, StandardAnalyzerProvider, StopAnalyzerProvider, WhitespaceAnalyzerProvider

public abstract class AbstractIndexAnalyzerProvider<T extends org.apache.lucene.analysis.Analyzer> extends AbstractIndexComponent implements AnalyzerProvider<T>
  • Constructor Details

    • AbstractIndexAnalyzerProvider

      public AbstractIndexAnalyzerProvider(IndexSettings indexSettings, String name, Settings settings)
      Constructs a new analyzer component, with the index name and its settings and the analyzer name.
      Parameters:
      indexSettings - the settings and the name of the index
      name - The analyzer name
  • Method Details

    • name

      public final String name()
      Returns the injected name of the analyzer.
      Specified by:
      name in interface AnalyzerProvider<T extends org.apache.lucene.analysis.Analyzer>
    • scope

      public final AnalyzerScope scope()
      Specified by:
      scope in interface AnalyzerProvider<T extends org.apache.lucene.analysis.Analyzer>