OpenSearch/rest-api-spec/test/indices.get_field_mapping/20_missing_field.yaml

22 lines
483 B
YAML

---
"Return empty object if field doesn't exist, but type and index do":
- do:
indices.create:
index: test_index
body:
mappings:
test_type:
properties:
text:
type: string
analyzer: whitespace
- do:
indices.get_field_mapping:
index: test_index
type: test_type
field: not_existent
- match: { '': {}}