Package org.elasticsearch.index.analysis
Class CustomAnalyzerProvider
- java.lang.Object
-
- org.elasticsearch.index.AbstractIndexComponent
-
- org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider<CustomAnalyzer>
-
- org.elasticsearch.index.analysis.CustomAnalyzerProvider
-
- All Implemented Interfaces:
Provider<CustomAnalyzer>
,AnalyzerProvider<CustomAnalyzer>
,IndexComponent
public class CustomAnalyzerProvider extends AbstractIndexAnalyzerProvider<CustomAnalyzer>
A custom analyzer that is built out of a singleTokenizer
and a list ofTokenFilter
s.
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider
version
-
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger
-
-
Constructor Summary
Constructors Constructor Description CustomAnalyzerProvider(IndexSettings indexSettings, java.lang.String name, Settings settings, Environment environment)
-
Method Summary
Modifier and Type Method Description void
build(java.util.Map<java.lang.String,TokenizerFactory> tokenizers, java.util.Map<java.lang.String,CharFilterFactory> charFilters, java.util.Map<java.lang.String,TokenFilterFactory> tokenFilters)
CustomAnalyzer
get()
Provides an instance ofT
.-
Methods inherited from class org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider
name, scope
-
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
getIndexSettings, index
-
-
-
-
Constructor Detail
-
CustomAnalyzerProvider
public CustomAnalyzerProvider(IndexSettings indexSettings, java.lang.String name, Settings settings, Environment environment)
-
-
Method Detail
-
build
public void build(java.util.Map<java.lang.String,TokenizerFactory> tokenizers, java.util.Map<java.lang.String,CharFilterFactory> charFilters, java.util.Map<java.lang.String,TokenFilterFactory> tokenFilters)
-
get
public CustomAnalyzer get()
Description copied from interface:Provider
Provides an instance ofT
. Must never returnnull
.
-
-