public abstract class AbstractIndexAnalyzerProvider<T extends org.apache.lucene.analysis.Analyzer> extends AbstractIndexComponent implements AnalyzerProvider<T>
Modifier and Type | Field and Description |
---|---|
protected org.apache.lucene.util.Version |
version |
componentSettings, index, indexSettings, logger
Constructor and Description |
---|
AbstractIndexAnalyzerProvider(Index index,
Settings indexSettings,
String name,
Settings settings)
Constructs a new analyzer component, with the index name and its settings and the analyzer name.
|
AbstractIndexAnalyzerProvider(Index index,
Settings indexSettings,
String prefixSettings,
String name,
Settings settings)
Constructs a new analyzer component, with the index name and its settings and the analyzer name.
|
Modifier and Type | Method and Description |
---|---|
String |
name()
Returns the injected name of the analyzer.
|
AnalyzerScope |
scope() |
index, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public AbstractIndexAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, String name, Settings settings)
index
- The index nameindexSettings
- The index settingsname
- The analyzer namepublic AbstractIndexAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, String prefixSettings, String name, Settings settings)
index
- The index nameindexSettings
- The index settingsprefixSettings
- A settings prefix (like "com.mycompany") to simplify extracting the component settingsname
- The analyzer namepublic final String name()
name
in interface AnalyzerProvider<T extends org.apache.lucene.analysis.Analyzer>
public final AnalyzerScope scope()
scope
in interface AnalyzerProvider<T extends org.apache.lucene.analysis.Analyzer>
Copyright © 2009–2015. All rights reserved.