mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 07:25:23 +00:00
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
---
|
|
"Test Create and update mapping":
|
|
- do:
|
|
indices.create:
|
|
index: test_index
|
|
|
|
- do:
|
|
indices.put_mapping:
|
|
index: test_index
|
|
type: test_type
|
|
body:
|
|
test_type:
|
|
properties:
|
|
text:
|
|
type: string
|
|
analyzer: whitespace
|
|
|
|
- do:
|
|
indices.get_mapping:
|
|
index: test_index
|
|
type: test_type
|
|
|
|
- match: {test_type.properties.text.type: string}
|
|
- match: {test_type.properties.text.analyzer: whitespace}
|
|
|
|
- do:
|
|
indices.put_mapping:
|
|
index: test_index
|
|
type: test_type
|
|
body:
|
|
test_type:
|
|
properties:
|
|
text:
|
|
type: multi_field
|
|
fields:
|
|
text:
|
|
type: string
|
|
analyzer: whitespace
|
|
text_raw:
|
|
type: string
|
|
index: not_analyzed
|
|
|
|
- do:
|
|
indices.get_mapping:
|
|
index: test_index
|
|
type: test_type
|
|
|
|
- match: {test_type.properties.text.type: multi_field}
|
|
- match: {test_type.properties.text.fields.text_raw.index: not_analyzed}
|