From d4873bd6a58b3aaac4350c194b2fa3b6bbc6cfa7 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Wed, 6 Nov 2013 10:58:40 +0100 Subject: [PATCH] Use same caching strategy for STANDARD and DEFAULT analyzer --- .../org/elasticsearch/indices/analysis/PreBuiltAnalyzers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/indices/analysis/PreBuiltAnalyzers.java b/src/main/java/org/elasticsearch/indices/analysis/PreBuiltAnalyzers.java index 32cfea2e4ed..b299d34d58c 100644 --- a/src/main/java/org/elasticsearch/indices/analysis/PreBuiltAnalyzers.java +++ b/src/main/java/org/elasticsearch/indices/analysis/PreBuiltAnalyzers.java @@ -84,7 +84,7 @@ public enum PreBuiltAnalyzers { } }, - DEFAULT { + DEFAULT(CachingStrategy.ELASTICSEARCH){ @Override protected Analyzer create(Version version) { // by calling get analyzer we are ensuring reuse of the same STANDARD analyzer for DEFAULT!