Sets update_all_types when setting mapping (#14002)

Prior to 5.6, we would push mappings once the object type was used. Since we are now ensuring all mappings are set, there is a situation where a field with type string exists but we are pushing text.

You can not have a field with the same name, but different data type, in two different document types.

To resolve this, we are setting update_all_types when updating mappings.

Backport of #13991

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2017-09-14 20:16:13 -07:00 committed by GitHub
parent e72a20670d
commit 94d14e5060

View file

@ -45,7 +45,8 @@ export async function patchKibanaIndex(options) {
type: rootEsType,
body: {
properties: missingProperties
}
},
update_all_types: true
});
}