From e6fc416adcaf5457a29069714a12b2e8f50ce05a Mon Sep 17 00:00:00 2001 From: Matt Weber Date: Fri, 18 Oct 2013 08:35:02 -0700 Subject: [PATCH] Fix small typo in terms lookup tests mapping. --- .../org/elasticsearch/search/query/SimpleQueryTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/elasticsearch/search/query/SimpleQueryTests.java b/src/test/java/org/elasticsearch/search/query/SimpleQueryTests.java index aa57c69dfc4..96bcc9028ca 100644 --- a/src/test/java/org/elasticsearch/search/query/SimpleQueryTests.java +++ b/src/test/java/org/elasticsearch/search/query/SimpleQueryTests.java @@ -990,11 +990,11 @@ public class SimpleQueryTests extends AbstractIntegrationTest { .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() + .startObject("term").field("type", "string").endObject() .endObject().endObject().endObject())); ensureGreen(); client().prepareIndex("lookup", "type", "1").setSource("terms", new String[]{"1", "3"}).execute().actionGet();