Package org.elasticsearch.index.analysis
Class CustomAnalyzerProvider
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider<org.apache.lucene.analysis.Analyzer>
org.elasticsearch.index.analysis.CustomAnalyzerProvider
- All Implemented Interfaces:
Provider<org.apache.lucene.analysis.Analyzer>,AnalyzerProvider<org.apache.lucene.analysis.Analyzer>,IndexComponent
public class CustomAnalyzerProvider extends AbstractIndexAnalyzerProvider<org.apache.lucene.analysis.Analyzer>
A custom analyzer that is built out of a single
Tokenizer and a list
of TokenFilters.-
Field Summary
Fields inherited from class org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider
versionFields inherited from class org.elasticsearch.index.AbstractIndexComponent
deprecationLogger, indexSettings, logger -
Constructor Summary
Constructors Constructor Description CustomAnalyzerProvider(IndexSettings indexSettings, java.lang.String name, Settings settings) -
Method Summary
Modifier and Type Method Description org.apache.lucene.analysis.Analyzerget()Provides an instance ofT.Methods inherited from class org.elasticsearch.index.analysis.AbstractIndexAnalyzerProvider
name, scopeMethods inherited from class org.elasticsearch.index.AbstractIndexComponent
getIndexSettings, indexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CustomAnalyzerProvider
public CustomAnalyzerProvider(IndexSettings indexSettings, java.lang.String name, Settings settings)
-
-
Method Details
-
get
public org.apache.lucene.analysis.Analyzer get()Description copied from interface:ProviderProvides an instance ofT. Must never returnnull.
-