1 setup: 2 - do: 3 indices.create: 4 index: test 5 - do: 6 index: 7 index: test 8 type: test 9 id: 1 10 body: { foo: bar } 11 - do: 12 indices.refresh: 13 index: [test] 14 15 --- 16 "Stored fields": 17 - do: 18 search: 19 index: test 20 21 - is_true: hits.hits.0._id 22 - is_true: hits.hits.0._type 23 - is_true: hits.hits.0._source 24 25 - do: 26 search: 27 index: test 28 body: 29 stored_fields: [] 30 31 - is_true: hits.hits.0._id 32 - is_true: hits.hits.0._type 33 - is_false: hits.hits.0._source 34 35 - do: 36 search: 37 index: test 38 body: 39 stored_fields: "_none_" 40 41 - is_false: hits.hits.0._id 42 - is_false: hits.hits.0._type 43 - is_false: hits.hits.0._source 44