Testing: Added REST tests to check if expression scripting works

This commit is contained in:
Alexander Reelsen 2015-02-18 19:25:09 +01:00
parent eb666f7f50
commit 2dc70597c2

View File

@ -0,0 +1,15 @@
---
"Expressions scripting test":
- do:
index:
index: test123
type: test
id: 1
body: { age: 23 }
- do:
indices.refresh: {}
- do: { search: { body: { script_fields : { my_field : { lang: expression, script: 'doc["age"].value + 19' } } } } }
- match: { hits.hits.0.fields.my_field: [ 42.0 ] }