Normalizing the source filtering params of get_source with the rest of the API
This commit is contained in:
parent
6e2deaa4b7
commit
4a91a243b1
|
@ -12,18 +12,18 @@
|
|||
body: { "include": { "field1": "v1", "field2": "v2" }, "count": 1 }
|
||||
|
||||
- do:
|
||||
get_source: { index: test_1, type: test, id: 1, include: include.field1 }
|
||||
get_source: { index: test_1, type: test, id: 1, _source_include: include.field1 }
|
||||
- match: { include.field1: v1 }
|
||||
- is_false: include.field2
|
||||
|
||||
- do:
|
||||
get_source: { index: test_1, type: test, id: 1, include: "include.field1,include.field2" }
|
||||
get_source: { index: test_1, type: test, id: 1, _source_include: "include.field1,include.field2" }
|
||||
- match: { include.field1: v1 }
|
||||
- match: { include.field2: v2 }
|
||||
- is_false: count
|
||||
|
||||
- do:
|
||||
get_source: { index: test_1, type: test, id: 1, include: include, exclude: "*.field2" }
|
||||
get_source: { index: test_1, type: test, id: 1, _source_include: include, _source_exclude: "*.field2" }
|
||||
- match: { include.field1: v1 }
|
||||
- is_false: include.field2
|
||||
- is_false: count
|
||||
|
|
Loading…
Reference in New Issue