[TEST] Make sure that the facet fields exist.

This commit is contained in:
Martijn van Groningen 2014-03-17 10:21:44 +07:00
parent ba8e34755f
commit b2a3904819
1 changed files with 6 additions and 1 deletions

View File

@ -375,7 +375,12 @@ public class SimpleNestedTests extends ElasticsearchIntegrationTest {
.addMapping("type1", jsonBuilder().startObject().startObject("type1").startObject("properties") .addMapping("type1", jsonBuilder().startObject().startObject("type1").startObject("properties")
.startObject("nested1") .startObject("nested1")
.field("type", "nested").startObject("properties") .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().endObject().endObject())); .endObject().endObject().endObject()));