setName('foq:elastica:populate') ->setDescription('Populates search indexes from providers'); } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $output->writeln('Reseting indexes'); $this->container->get('foq_elastica.reseter')->reset(); $output->writeln('Populating indexes'); $this->container->get('foq_elastica.populator')->populate(); $output->writeln('Done'); } }