From 1acca2050c8220a3663e661311a25313da17535b Mon Sep 17 00:00:00 2001 From: kimchy Date: Sun, 10 Jul 2011 23:44:41 +0300 Subject: [PATCH] Allow to disable automatic date detection, closes #1051. --- .../org/elasticsearch/index/mapper/object/RootObjectMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/object/RootObjectMapper.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/object/RootObjectMapper.java index a711540f584..c1e65fd391d 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/object/RootObjectMapper.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/object/RootObjectMapper.java @@ -256,7 +256,7 @@ public class RootObjectMapper extends ObjectMapper { } if (dateDetection != Defaults.DATE_DETECTION) { - builder.field("date_detection", Defaults.DATE_DETECTION); + builder.field("date_detection", dateDetection); } } }