mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
45 lines
831 B
YAML
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: 中文" } }
|