"Fossies" - the Fresh Open Source Software Archive 
Member "elasticsearch-6.8.23/rest-api-spec/src/main/resources/rest-api-spec/test/mget/10_basic.yml" (29 Dec 2021, 1266 Bytes) of package /linux/www/elasticsearch-6.8.23-src.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 ---
2 "Basic multi-get":
3 - do:
4 indices.create:
5 index: test_2
6 - do:
7 index:
8 index: test_1
9 type: test
10 id: 1
11 body: { foo: bar }
12
13 - do:
14 indices.refresh: {}
15
16 - do:
17 mget:
18 body:
19 docs:
20 - { _index: test_2, _type: test, _id: 1}
21 - { _index: test_1, _type: none, _id: 1}
22 - { _index: test_1, _type: test, _id: 2}
23 - { _index: test_1, _type: test, _id: 1}
24
25 - is_false: docs.0.found
26 - match: { docs.0._index: test_2 }
27 - match: { docs.0._type: test }
28 - match: { docs.0._id: "1" }
29
30 - is_false: docs.1.found
31 - match: { docs.1._index: test_1 }
32 - match: { docs.1._type: none }
33 - match: { docs.1._id: "1" }
34
35 - is_false: docs.2.found
36 - match: { docs.2._index: test_1 }
37 - match: { docs.2._type: test }
38 - match: { docs.2._id: "2" }
39
40 - is_true: docs.3.found
41 - match: { docs.3._index: test_1 }
42 - match: { docs.3._type: test }
43 - match: { docs.3._id: "1" }
44 - match: { docs.3._version: 1 }
45 - match: { docs.3._source: { foo: bar }}