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,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" +
|
||||||
|
|
Loading…
Reference in New Issue