diff --git a/src/test/java/org/elasticsearch/search/fields/SearchFieldsTests.java b/src/test/java/org/elasticsearch/search/fields/SearchFieldsTests.java index 02740c0314b..21cfa8350ae 100644 --- a/src/test/java/org/elasticsearch/search/fields/SearchFieldsTests.java +++ b/src/test/java/org/elasticsearch/search/fields/SearchFieldsTests.java @@ -185,7 +185,7 @@ public class SearchFieldsTests extends ElasticsearchIntegrationTest { @Test public void testUidBasedScriptFields() throws Exception { - createIndex("test"); + prepareCreate("test").addMapping("type1", "num1", "type=long").execute().actionGet(); ensureYellow(); int numDocs = randomIntBetween(1, 30);