Skip config processing of indexes without types (fixes #246)

This commit is contained in:
Jeremy Mikola 2013-03-04 14:59:04 -05:00
parent eff52c2c9b
commit 8d11082a02

View file

@ -349,6 +349,10 @@ class Configuration
{
$nestings = array();
foreach ($this->configArray[0]['indexes'] as $index) {
if (empty($index['types'])) {
continue;
}
foreach ($index['types'] as $type) {
$nestings = array_merge_recursive($nestings, $this->getNestingsForType($type['mappings'], $nestings));
}