From 3728c947805fce7444f071aef27445c7dcf487ee Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Tue, 21 Oct 2014 10:42:54 +0200 Subject: [PATCH] Tests: Fix SearchFieldsTests after changes to TimestampFieldMapper. --- .../org/elasticsearch/search/fields/SearchFieldsTests.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/search/fields/SearchFieldsTests.java b/src/test/java/org/elasticsearch/search/fields/SearchFieldsTests.java index 769d26619a2..20b8a9b3f2b 100644 --- a/src/test/java/org/elasticsearch/search/fields/SearchFieldsTests.java +++ b/src/test/java/org/elasticsearch/search/fields/SearchFieldsTests.java @@ -58,7 +58,10 @@ public class SearchFieldsTests extends ElasticsearchIntegrationTest { createIndex("test"); client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).setWaitForYellowStatus().execute().actionGet(); - String mapping = XContentFactory.jsonBuilder().startObject().startObject("type1").startObject("properties") + String mapping = XContentFactory.jsonBuilder().startObject().startObject("type1") + // _timestamp is randomly enabled via templates but we don't want it here to test stored fields behaviour + .startObject("_timestamp").field("enabled", false).endObject() + .startObject("properties") .startObject("field1").field("type", "string").field("store", "yes").endObject() .startObject("field2").field("type", "string").field("store", "no").endObject() .startObject("field3").field("type", "string").field("store", "yes").endObject()