We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec51df commit 4692458Copy full SHA for 4692458
rest-api-spec/test/script/30_expressions.yaml
@@ -1,6 +1,14 @@
1
---
2
-"Expressions scripting test":
3
-
+setup:
+ - do:
4
+ indices.create:
5
+ index: test123
6
+ body:
7
+ mappings:
8
+ test:
9
+ properties:
10
+ age:
11
+ type: long
12
- do:
13
index:
14
index: test123
@@ -11,5 +19,9 @@
19
20
indices.refresh: {}
21
22
+---
23
+"Expressions scripting test":
24
+
25
- do: { search: { body: { script_fields : { my_field : { lang: expression, script: 'doc["age"].value' } } } } }
15
- - match: { hits.hits.0.fields.my_field: [ 23.0 ] }
26
+ - match: { hits.hits.0.fields.my_field: [ 23 ] }
27
0 commit comments