2013-10-30 14:19:35 -04:00
|
|
|
---
|
2014-01-27 16:21:30 -05:00
|
|
|
"Return empty object if field doesn't exist, but type and index do":
|
2013-10-30 14:19:35 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
|
|
|
body:
|
|
|
|
mappings:
|
|
|
|
test_type:
|
|
|
|
properties:
|
|
|
|
text:
|
|
|
|
type: string
|
|
|
|
analyzer: whitespace
|
2014-02-21 14:25:35 -05:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
2013-10-30 14:19:35 -04:00
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_field_mapping:
|
|
|
|
index: test_index
|
|
|
|
type: test_type
|
2014-01-27 16:21:30 -05:00
|
|
|
field: not_existent
|
2013-10-30 14:19:35 -04:00
|
|
|
|
2014-01-27 16:21:30 -05:00
|
|
|
- match: { '': {}}
|