Fixed mapping issues
This commit is contained in:
parent
b155f304e4
commit
4e990e0cee
14 changed files with 454 additions and 238 deletions
|
|
@ -42,10 +42,12 @@ class ContainerSource implements SourceInterface
|
|||
foreach ($this->configArray as $config) {
|
||||
$types = array();
|
||||
foreach ($config['types'] as $typeConfig) {
|
||||
$types[$typeConfig['name']] = new TypeConfig($typeConfig['name'], array(
|
||||
'dynamicTemplates' => $typeConfig['dynamic_templates'],
|
||||
'properties' => $typeConfig['properties'],
|
||||
), $config['type_prototype']);
|
||||
$types[$typeConfig['name']] = new TypeConfig(
|
||||
$typeConfig['name'],
|
||||
$typeConfig['mapping'],
|
||||
$typeConfig['config']
|
||||
);
|
||||
// TODO: handle prototypes..
|
||||
}
|
||||
|
||||
$index = new IndexConfig($config['name'], $types, array(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue