|
@@ -10,21 +10,17 @@ package org.elasticsearch.index.analysis;
|
|
|
|
|
|
import org.apache.lucene.analysis.Analyzer;
|
|
|
import org.elasticsearch.common.settings.Settings;
|
|
|
-import org.elasticsearch.index.AbstractIndexComponent;
|
|
|
-import org.elasticsearch.index.IndexSettings;
|
|
|
|
|
|
-public abstract class AbstractIndexAnalyzerProvider<T extends Analyzer> extends AbstractIndexComponent implements AnalyzerProvider<T> {
|
|
|
+public abstract class AbstractIndexAnalyzerProvider<T extends Analyzer> implements AnalyzerProvider<T> {
|
|
|
|
|
|
private final String name;
|
|
|
|
|
|
/**
|
|
|
* Constructs a new analyzer component, with the index name and its settings and the analyzer name.
|
|
|
*
|
|
|
- * @param indexSettings the settings and the name of the index
|
|
|
* @param name The analyzer name
|
|
|
*/
|
|
|
- public AbstractIndexAnalyzerProvider(IndexSettings indexSettings, String name, Settings settings) {
|
|
|
- super(indexSettings);
|
|
|
+ public AbstractIndexAnalyzerProvider(String name, Settings settings) {
|
|
|
this.name = name;
|
|
|
Analysis.checkForDeprecatedVersion(name, settings);
|
|
|
}
|