Tests: Fix test failure introduced in #8967

This commit is contained in:
Ryan Ernst 2015-01-12 08:42:59 -08:00
parent 7d5a15e461
commit 6f214d791f
1 changed files with 1 additions and 0 deletions

View File

@ -445,6 +445,7 @@ public class TimestampMappingTests extends ElasticsearchSingleNodeTest {
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
.startObject("_timestamp").field("enabled", true)
.field("index", randomBoolean() ? "no" : "analyzed") // default is "not_analyzed" which will be omitted when building the source again
.field("doc_values", true)
.field("path", "foo")
.field("default", "1970-01-01")
.startObject("fielddata").field("format", "doc_values").endObject()