diff --git a/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java b/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java index 33f041533cf..053caa257d2 100644 --- a/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java +++ b/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java @@ -415,6 +415,8 @@ public class FunctionScoreTests extends ElasticsearchIntegrationTest { @Test public void testScriptScoresWithAgg() throws IOException { + createIndex(INDEX); + ensureYellow(); index(INDEX, TYPE, "1", jsonBuilder().startObject().field("dummy_field", 1).endObject()); refresh(); SearchResponse response = client().search(