Class ReloadableCustomAnalyzer

java.lang.Object
org.apache.lucene.analysis.Analyzer
org.elasticsearch.index.analysis.ReloadableCustomAnalyzer
All Implemented Interfaces:
Closeable, AutoCloseable, AnalyzerComponentsProvider

public final class ReloadableCustomAnalyzer extends org.apache.lucene.analysis.Analyzer implements AnalyzerComponentsProvider
  • Method Details

    • getComponents

      public AnalyzerComponents getComponents()
      Specified by:
      getComponents in interface AnalyzerComponentsProvider
    • getPositionIncrementGap

      public int getPositionIncrementGap(String fieldName)
      Overrides:
      getPositionIncrementGap in class org.apache.lucene.analysis.Analyzer
    • getOffsetGap

      public int getOffsetGap(String field)
      Overrides:
      getOffsetGap in class org.apache.lucene.analysis.Analyzer
    • getAnalysisMode

      public AnalysisMode getAnalysisMode()
    • initReaderForNormalization

      protected Reader initReaderForNormalization(String fieldName, Reader reader)
      Overrides:
      initReaderForNormalization in class org.apache.lucene.analysis.Analyzer
    • normalize

      protected org.apache.lucene.analysis.TokenStream normalize(String fieldName, org.apache.lucene.analysis.TokenStream in)
      Overrides:
      normalize in class org.apache.lucene.analysis.Analyzer
    • reload

      public void reload(String name, Settings settings, Map<String,TokenizerFactory> tokenizers, Map<String,CharFilterFactory> charFilters, Map<String,TokenFilterFactory> tokenFilters)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class org.apache.lucene.analysis.Analyzer
    • createComponents

      protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName)
      Specified by:
      createComponents in class org.apache.lucene.analysis.Analyzer
    • initReader

      protected Reader initReader(String fieldName, Reader reader)
      Overrides:
      initReader in class org.apache.lucene.analysis.Analyzer