[TEST] Fix test to use correct type in the mapping

This commit is contained in:
Simon Willnauer 2015-03-14 13:18:10 -07:00
parent 0683a66277
commit caafad750a

View File

@ -787,8 +787,8 @@ public class SuggestSearchTests extends ElasticsearchIntegrationTest {
.put("index.analysis.filter.shingler.min_shingle_size", 2) .put("index.analysis.filter.shingler.min_shingle_size", 2)
.put("index.analysis.filter.shingler.max_shingle_size", 5) .put("index.analysis.filter.shingler.max_shingle_size", 5)
.put("index.analysis.filter.shingler.output_unigrams", true)); .put("index.analysis.filter.shingler.output_unigrams", true));
XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().startObject("type1") XContentBuilder mapping = XContentFactory.jsonBuilder().startObject().startObject("type2")
.startObject("properties") .startObject("properties")
.startObject("name") .startObject("name")
.field("type", "multi_field") .field("type", "multi_field")
@ -801,7 +801,7 @@ public class SuggestSearchTests extends ElasticsearchIntegrationTest {
.endObject() .endObject()
.endObject() .endObject()
.endObject().endObject(); .endObject().endObject();
assertAcked(builder.addMapping("type1", mapping)); assertAcked(builder.addMapping("type2", mapping));
ensureGreen(); ensureGreen();
index("test", "type2", "1", "foo", "bar"); index("test", "type2", "1", "foo", "bar");