test: use exist query directly, filtered query has been removed

Original commit: elastic/x-pack-elasticsearch@1c374adb97
This commit is contained in:
Martijn van Groningen 2015-09-10 12:07:44 +02:00
parent e86813a655
commit 0ef1bfb9a2
1 changed files with 2 additions and 6 deletions

View File

@ -60,12 +60,8 @@ public class ShieldCachePermissionTests extends ShieldIntegTestCase {
client().preparePutIndexedScript().setOpType(IndexRequest.OpType.CREATE).setSource("{\n" + client().preparePutIndexedScript().setOpType(IndexRequest.OpType.CREATE).setSource("{\n" +
"\"template\": {\n" + "\"template\": {\n" +
" \"query\": {\n" + " \"query\": {\n" +
" \"filtered\": {\n" + " \"exists\": {\n" +
" \"filter\": {\n" + " \"field\": \"{{name}}\"\n" +
" \"exists\": {\n" +
" \"field\": \"{{name}}\"\n" +
" }\n" +
" }\n" +
" }\n" + " }\n" +
" }\n" + " }\n" +
" }\n" + " }\n" +