Skip to content

Commit 9b26bf1

Browse files
committed
Add counted_keyword multiple_subobjects yaml test
1 parent 623a6af commit 9b26bf1

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
"multiple subobjects":
2+
- requires:
3+
cluster_features: ["gte_v8.12.0"]
4+
reason: "counted_keyword was added in 8.12"
5+
6+
- do:
7+
indices.create:
8+
index: test-events
9+
body:
10+
mappings:
11+
properties:
12+
parent:
13+
type: object
14+
properties:
15+
child:
16+
type: counted_keyword
17+
18+
- do:
19+
index:
20+
index: test-events
21+
id: "1"
22+
refresh: true
23+
body: '{"parent": [{"child": "foo"}, {"child": "bar"}]}'
24+
25+
- do:
26+
search:
27+
index: test-events
28+
body:
29+
query:
30+
ids:
31+
values: [ 1 ]
32+
- match:
33+
hits.hits.0._source: {"parent": [{"child": "foo"}, {"child": "bar"}]}

0 commit comments

Comments
 (0)