Fix index wide finder config check

Fixes index wide finder configuration. Fixes #61
This commit is contained in:
Tim Nagel 2012-01-07 08:52:49 +11:00
parent 96be3159bc
commit aa5bac2ccc
2 changed files with 5 additions and 2 deletions

View file

@ -71,7 +71,10 @@ class Configuration
->performNoDeepMerging()
->children()
->scalarNode('client')->end()
->scalarNode('finder')->end()
->scalarNode('finder')
->treatNullLike(true)
->defaultFalse()
->end()
->arrayNode('type_prototype')
->children()
->arrayNode('persistence')

View file

@ -113,7 +113,7 @@ class FOQElasticaExtension extends Extension
'mappings' => array()
)
);
if (isset($index['finder'])) {
if ($index['finder']) {
$this->loadIndexFinder($container, $name, $indexId);
}
if (!empty($index['settings'])) {