2013-07-14 15:37:55 +02:00

45 lines
831 B
YAML

---
"Basic GET":
- do:
catch: missing
get:
index: test_1
type: test
id: 1
- do:
get:
index: test_1
type: test
id: 1
ignore_missing: 1
- do:
index:
index: test_1
type: test
id: 中文
body: { "foo": "Hello: 中文" }
- do:
get:
index: test_1
type: test
id: 中文
- match: { _index: test_1 }
- match: { _type: test }
- match: { _id: 中文 }
- match: { _source: { foo: "Hello: 中文" } }
- do:
get:
index: test_1
id: 中文
- match: { _index: test_1 }
- match: { _type: test }
- match: { _id: 中文 }
- match: { _source: { foo: "Hello: 中文" } }