diff --git a/server/src/test/java/org/elasticsearch/search/searchafter/SearchAfterIT.java b/server/src/test/java/org/elasticsearch/search/searchafter/SearchAfterIT.java index c856c0629ab..10386299d3d 100644 --- a/server/src/test/java/org/elasticsearch/search/searchafter/SearchAfterIT.java +++ b/server/src/test/java/org/elasticsearch/search/searchafter/SearchAfterIT.java @@ -51,7 +51,7 @@ public class SearchAfterIT extends ESIntegTestCase { public void testsShouldFail() throws Exception { assertAcked(client().admin().indices().prepareCreate("test") - .addMapping("type1", "field2", "type=keyword") + .addMapping("type1", "field1", "type=long", "field2", "type=keyword") .get() ); ensureGreen();