Module org.elasticsearch.server
Package org.elasticsearch.index.analysis
Class PreConfiguredTokenizer
java.lang.Object
org.elasticsearch.index.analysis.PreConfiguredAnalysisComponent<TokenizerFactory>
org.elasticsearch.index.analysis.PreConfiguredTokenizer
- All Implemented Interfaces:
- AnalysisModule.AnalysisProvider<TokenizerFactory>
Provides pre-configured, shared 
Tokenizers.- 
Field SummaryFields inherited from class org.elasticsearch.index.analysis.PreConfiguredAnalysisComponentcache, name
- 
Method SummaryModifier and TypeMethodDescriptionprotected TokenizerFactorystatic PreConfiguredTokenizerelasticsearchVersion(String name, Function<Version, org.apache.lucene.analysis.Tokenizer> create) Create a pre-configured tokenizer that may vary based on the Elasticsearch version.static PreConfiguredTokenizerluceneVersion(String name, Function<org.apache.lucene.util.Version, org.apache.lucene.analysis.Tokenizer> create) Create a pre-configured tokenizer that may vary based on the Lucene version.static PreConfiguredTokenizerCreate a pre-configured tokenizer that may not vary at all.Methods inherited from class org.elasticsearch.index.analysis.PreConfiguredAnalysisComponentget, getNameMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.indices.analysis.AnalysisModule.AnalysisProviderget, requiresAnalysisSettings
- 
Method Details- 
singletonpublic static PreConfiguredTokenizer singleton(String name, Supplier<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
 
- 
luceneVersionpublic static PreConfiguredTokenizer luceneVersion(String name, Function<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
 
- 
elasticsearchVersionpublic static PreConfiguredTokenizer elasticsearchVersion(String name, Function<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- Specified by:
- createin class- PreConfiguredAnalysisComponent<TokenizerFactory>
 
 
-