diff --git a/shield/src/test/java/org/elasticsearch/integration/ShieldCachePermissionTests.java b/shield/src/test/java/org/elasticsearch/integration/ShieldCachePermissionTests.java index ff6cded6c02..3cc916c8461 100644 --- a/shield/src/test/java/org/elasticsearch/integration/ShieldCachePermissionTests.java +++ b/shield/src/test/java/org/elasticsearch/integration/ShieldCachePermissionTests.java @@ -60,12 +60,8 @@ public class ShieldCachePermissionTests extends ShieldIntegTestCase { client().preparePutIndexedScript().setOpType(IndexRequest.OpType.CREATE).setSource("{\n" + "\"template\": {\n" + " \"query\": {\n" + - " \"filtered\": {\n" + - " \"filter\": {\n" + - " \"exists\": {\n" + - " \"field\": \"{{name}}\"\n" + - " }\n" + - " }\n" + + " \"exists\": {\n" + + " \"field\": \"{{name}}\"\n" + " }\n" + " }\n" + " }\n" +