Fix small typo in terms lookup tests mapping (count api tests)

This commit is contained in:
Luca Cavanna 2013-10-18 17:50:20 +02:00
parent e6fc416adc
commit b7d8c275eb
1 changed files with 10 additions and 10 deletions

View File

@ -696,17 +696,17 @@ public class SimpleQueryTests extends AbstractIntegrationTest {
public void testTermsLookupFilter() throws Exception {
assertAcked(prepareCreate("lookup").addMapping("type",
jsonBuilder().startObject().startObject("type").startObject("properties")
.startObject("terms").field("type", "string").endObject()
.startObject("other").field("type", "string").endObject()
.endObject().endObject().endObject()));
.startObject("terms").field("type", "string").endObject()
.startObject("other").field("type", "string").endObject()
.endObject().endObject().endObject()));
assertAcked(prepareCreate("lookup2").addMapping("type",
jsonBuilder().startObject().startObject("type").startObject("properties")
.startObject("terms").field("type", "string").endObject()
.endObject().endObject().endObject()));
.startObject("arr").startObject("properties").startObject("term").field("type", "string")
.endObject().endObject().endObject().endObject().endObject().endObject()));
assertAcked(prepareCreate("test").addMapping("type",
jsonBuilder().startObject().startObject("type").startObject("properties")
.startObject("terms").field("type", "string").endObject()
.endObject().endObject().endObject()));
.startObject("term").field("type", "string").endObject()
.endObject().endObject().endObject()));
ensureGreen();
client().prepareIndex("lookup", "type", "1").setSource("terms", new String[]{"1", "3"}).execute().actionGet();
client().prepareIndex("lookup", "type", "2").setSource("terms", new String[]{"2"}).execute().actionGet();