"multi_field" type fields are not normalized

Fix for #764
This commit is contained in:
Vladimir Kartaviy 2015-01-07 16:49:46 +02:00 committed by Tim Nagel
parent 9f5ce217dc
commit 905265ea0e

View file

@ -107,6 +107,9 @@ class MappingBuilder
if (!isset($property['type'])) {
$property['type'] = 'string';
}
if ($property['type'] == 'multi_field' && isset($property['fields'])) {
$this->fixProperties($property['fields']);
}
if (isset($property['properties'])) {
$this->fixProperties($property['properties']);
}