AnalysisModule.AnalysisProvider<AnalyzerProvider<?>>
public class PreBuiltAnalyzerProviderFactory extends java.lang.Object implements AnalysisModule.AnalysisProvider<AnalyzerProvider<?>>
Constructor | Description |
---|---|
PreBuiltAnalyzerProviderFactory(java.lang.String name,
AnalyzerScope scope,
org.apache.lucene.analysis.Analyzer analyzer) |
Modifier and Type | Method | Description |
---|---|---|
org.apache.lucene.analysis.Analyzer |
analyzer() |
|
AnalyzerProvider<?> |
create(java.lang.String name,
Settings settings) |
|
AnalyzerProvider<?> |
get(IndexSettings indexSettings,
Environment environment,
java.lang.String name,
Settings settings) |
Creates a new analysis provider.
|
get, requiresAnalysisSettings
public PreBuiltAnalyzerProviderFactory(java.lang.String name, AnalyzerScope scope, org.apache.lucene.analysis.Analyzer analyzer)
public AnalyzerProvider<?> create(java.lang.String name, Settings settings)
public AnalyzerProvider<?> get(IndexSettings indexSettings, Environment environment, java.lang.String name, Settings settings) throws java.io.IOException
AnalysisModule.AnalysisProvider
get
in interface AnalysisModule.AnalysisProvider<AnalyzerProvider<?>>
indexSettings
- the index settings for the index this provider is created forenvironment
- the nodes environment to load resources from persistent storagename
- the name of the analysis componentsettings
- the component specific settings without context prefixesjava.io.IOException
- if an IOException
occurspublic org.apache.lucene.analysis.Analyzer analyzer()