use painless syntax improvements in watcher tests and docs

Original commit: elastic/x-pack-elasticsearch@27ef31efac
This commit is contained in:
Robert Muir 2016-05-11 21:24:43 -04:00
parent 61b8192dd9
commit 3a2cfabc4d
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@
},
"condition" : {
"script" : {
"inline" : "input.ctx.payload.hits.total > 1",
"inline" : "ctx.payload.hits.total > 1",
"lang" : "painless"
}
},

View File

@ -19,7 +19,7 @@
},
"condition" : {
"script" : {
"inline" : "input.ctx.payload.count == 1",
"inline" : "ctx.payload.count == 1",
"lang" : "painless"
}
},

View File

@ -51,7 +51,7 @@
},
"condition" : {
"script" : {
"inline" : "input.ctx.payload.hits.total > 1",
"inline" : "ctx.payload.hits.total > 1",
"lang" : "painless"
}
},