From 0ef1bfb9a2e348c99dab37f692482e0f72787dfe Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 10 Sep 2015 12:07:44 +0200 Subject: [PATCH] test: use exist query directly, filtered query has been removed Original commit: elastic/x-pack-elasticsearch@1c374adb9765cf02c6c2ece8ff885b975a14adfe --- .../integration/ShieldCachePermissionTests.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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" +