From 3574d9de499f52f92ce0c91123275c6c88722f80 Mon Sep 17 00:00:00 2001 From: Luca Cavanna Date: Tue, 6 Aug 2013 23:07:44 +0200 Subject: [PATCH] added explicit creation of parent type in create index --- .../test/integration/document/BulkTests.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/test/integration/document/BulkTests.java b/src/test/java/org/elasticsearch/test/integration/document/BulkTests.java index c5aba999491..1ee37d5047e 100644 --- a/src/test/java/org/elasticsearch/test/integration/document/BulkTests.java +++ b/src/test/java/org/elasticsearch/test/integration/document/BulkTests.java @@ -337,10 +337,13 @@ public class BulkTests extends AbstractSharedClusterTest { } } - //Test for https://github.com/elasticsearch/elasticsearch/issues/3444 + /* + Test for https://github.com/elasticsearch/elasticsearch/issues/3444 + */ @Test public void testBulkUpdateDocAsUpsertWithParent() throws Exception { client().admin().indices().prepareCreate("test") + .addMapping("parent", "{\"parent\":{}}") .addMapping("child", "{\"child\": {\"_parent\": {\"type\": \"parent\"}}}") .execute().actionGet(); client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).setWaitForGreenStatus().execute().actionGet(); @@ -372,9 +375,13 @@ public class BulkTests extends AbstractSharedClusterTest { assertSearchHits(searchResponse, "child1"); } + /* + Test for https://github.com/elasticsearch/elasticsearch/issues/3444 + */ @Test public void testBulkUpdateUpsertWithParent() throws Exception { client().admin().indices().prepareCreate("test") + .addMapping("parent", "{\"parent\":{}}") .addMapping("child", "{\"child\": {\"_parent\": {\"type\": \"parent\"}}}") .execute().actionGet(); client().admin().cluster().prepareHealth().setWaitForEvents(Priority.LANGUID).setWaitForGreenStatus().execute().actionGet();