Class PreConfiguredTokenizer

org.elasticsearch.index.analysis.PreConfiguredAnalysisComponent<TokenizerFactory>
org.elasticsearch.index.analysis.PreConfiguredTokenizer
All Implemented Interfaces:
AnalysisModule.AnalysisProvider<TokenizerFactory>

public final class PreConfiguredTokenizer extends PreConfiguredAnalysisComponent<TokenizerFactory>
Provides pre-configured, shared Tokenizers.
  • Method Details

    • singleton

      public static  name, <org.apache.lucene.analysis.Tokenizer> create)
      Create a pre-configured tokenizer that may not vary at all.
      Parameters:
      name - the name of the tokenizer in the api
      create - builds the tokenizer
    • luceneVersion

      public static  name, <org.apache.lucene.util.Version,​org.apache.lucene.analysis.Tokenizer> create)
      Create a pre-configured tokenizer that may vary based on the Lucene version.
      Parameters:
      name - the name of the tokenizer in the api
      create - builds the tokenizer
    • elasticsearchVersion

      public static  name, <Version,​org.apache.lucene.analysis.Tokenizer> create)
      Create a pre-configured tokenizer that may vary based on the Elasticsearch version.
      Parameters:
      name - the name of the tokenizer in the api
      create - builds the tokenizer
    • create

      protected TokenizerFactory create(Version version)
      Specified by:
      create in class PreConfiguredAnalysisComponent<TokenizerFactory>