test: use exist query directly, filtered query has been removed
Original commit: elastic/x-pack-elasticsearch@1c374adb97
This commit is contained in:
parent
e86813a655
commit
0ef1bfb9a2
|
@ -60,15 +60,11 @@ 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" +
|
||||
" }\n" +
|
||||
" }\n" +
|
||||
" }\n" +
|
||||
"}")
|
||||
.setScriptLang("mustache")
|
||||
.setId("testTemplate")
|
||||
|
|
Loading…
Reference in New Issue