Reset / create new index even if the index doesn't exist

This commit is contained in:
nurikabe 2014-04-02 07:18:46 -04:00
parent ff95945819
commit a89856be50

View file

@ -109,7 +109,7 @@ class PopulateCommand extends ContainerAwareCommand
*/
private function populateIndex(OutputInterface $output, $index, $reset, $options)
{
if ($reset && $this->indexManager->getIndex($index)->exists()) {
if ($reset) {
$output->writeln(sprintf('<info>Resetting</info> <comment>%s</comment>', $index));
$this->resetter->resetIndex($index);
}