diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/AnalysisService.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/AnalysisService.java index 090436d3133..42e21d7634c 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/AnalysisService.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/AnalysisService.java @@ -39,8 +39,6 @@ import static org.elasticsearch.util.collect.Maps.*; */ public class AnalysisService extends AbstractIndexComponent implements CloseableComponent { - private final ImmutableMap analyzerProviders; - private final ImmutableMap analyzers; private final ImmutableMap tokenizers; @@ -84,8 +82,6 @@ public class AnalysisService extends AbstractIndexComponent implements Closeable analyzerProviders.put("default_search", analyzerProviders.get("default")); } - this.analyzerProviders = ImmutableMap.copyOf(analyzerProviders); - Map analyzers = newHashMap(); for (AnalyzerProvider analyzerFactory : analyzerProviders.values()) { analyzers.put(analyzerFactory.name(), new NamedAnalyzer(analyzerFactory.name(), analyzerFactory.get())); @@ -151,10 +147,6 @@ public class AnalysisService extends AbstractIndexComponent implements Closeable return defaultAnalyzer(); } - public AnalyzerProvider analyzerProvider(String name) { - return analyzerProviders.get(name); - } - public TokenizerFactory tokenizer(String name) { return tokenizers.get(name); }