Normalizing the source filtering params of get_source with the rest of the API

This commit is contained in:
Boaz Leskes 2013-10-11 12:29:17 +02:00
parent 6e2deaa4b7
commit 4a91a243b1
1 changed files with 3 additions and 3 deletions

View File

@ -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