From b2a3904819c6d829def17d74b2c8ce17c3219e27 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Mon, 17 Mar 2014 10:21:44 +0700 Subject: [PATCH] [TEST] Make sure that the facet fields exist. --- .../java/org/elasticsearch/nested/SimpleNestedTests.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/nested/SimpleNestedTests.java b/src/test/java/org/elasticsearch/nested/SimpleNestedTests.java index bec5e54e833..aaa65af48ac 100644 --- a/src/test/java/org/elasticsearch/nested/SimpleNestedTests.java +++ b/src/test/java/org/elasticsearch/nested/SimpleNestedTests.java @@ -375,7 +375,12 @@ public class SimpleNestedTests extends ElasticsearchIntegrationTest { .addMapping("type1", jsonBuilder().startObject().startObject("type1").startObject("properties") .startObject("nested1") .field("type", "nested").startObject("properties") - .startObject("nested2").field("type", "nested").endObject() + .startObject("nested2").field("type", "nested") + .startObject("properties") + .startObject("field2_1").field("type", "string").endObject() + .startObject("field2_2").field("type", "long").endObject() + .endObject() + .endObject() .endObject().endObject() .endObject().endObject().endObject()));