Skip config processing of indexes without types (fixes #246)
This commit is contained in:
parent
eff52c2c9b
commit
8d11082a02
|
@ -349,6 +349,10 @@ class Configuration
|
||||||
{
|
{
|
||||||
$nestings = array();
|
$nestings = array();
|
||||||
foreach ($this->configArray[0]['indexes'] as $index) {
|
foreach ($this->configArray[0]['indexes'] as $index) {
|
||||||
|
if (empty($index['types'])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($index['types'] as $type) {
|
foreach ($index['types'] as $type) {
|
||||||
$nestings = array_merge_recursive($nestings, $this->getNestingsForType($type['mappings'], $nestings));
|
$nestings = array_merge_recursive($nestings, $this->getNestingsForType($type['mappings'], $nestings));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue