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,15 +60,11 @@ 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" +
" \"filter\": {\n" +
" \"exists\": {\n" + " \"exists\": {\n" +
" \"field\": \"{{name}}\"\n" + " \"field\": \"{{name}}\"\n" +
" }\n" + " }\n" +
" }\n" + " }\n" +
" }\n" + " }\n" +
" }\n" +
" }\n" +
"}") "}")
.setScriptLang("mustache") .setScriptLang("mustache")
.setId("testTemplate") .setId("testTemplate")