mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
5e58f4066e
If a get field mapping request is issued, and all but the field can be found, the response should return an empty JSON object instead of a 404. Closes #4738
22 lines
483 B
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: { '': {}}
|