Replace the type inspector with a mapping registry to improve performances

This commit is contained in:
ornicar 2011-06-07 14:19:50 -07:00
commit 214250416a
7 changed files with 75 additions and 109 deletions

View file

@ -33,7 +33,7 @@ class PopulateCommand extends Command
$this->container->get('foq_elastica.reseter')->reset();
$output->writeln('Setting mappings');
$this->container->get('foq_elastica.mapping_setter')->setMappings();
$this->container->get('foq_elastica.mapping_registry')->applyMappings();
$output->writeln('Populating indexes');
$this->container->get('foq_elastica.populator')->populate(function($text) use ($output) {