OpenSearch/rest-api-spec/test/indices.get_mapping/40_aliases.yaml

27 lines
643 B
YAML

---
"Getting mapping for aliases should return the real index as key":
- do:
indices.create:
index: test_index
body:
mappings:
test_type:
properties:
text:
type: string
analyzer: whitespace
- do:
indices.put_alias:
index: test_index
name: test_alias
- do:
indices.get_mapping:
index: test_alias
- match: {test_index.mappings.test_type.properties.text.type: string}
- match: {test_index.mappings.test_type.properties.text.analyzer: whitespace}