Revert "PHRAS-714_thesaurus_indexation"

This commit is contained in:
Thibaud Fabre
2016-10-18 20:15:23 +02:00
committed by GitHub
parent eba83584f4
commit ba8be47423
9 changed files with 121 additions and 162 deletions

View File

@@ -59,13 +59,8 @@ class IndexPopulateCommand extends Command
throw new \RuntimeException("Could not provide --thesaurus and --records option at the same time.");
}
$databoxes_id = $input->getOption('databox_id');
$databoxes = $input->getOption('databox_id');
$app = $this->container;
foreach($app->getDataboxes() as $databox) {
if(!$databoxes_id || in_array($databox->get_sbas_id(), $databoxes_id)) {
$this->container['elasticsearch.indexer']->populateIndex($what, $databox);
}
}
$this->container['elasticsearch.indexer']->populateIndex($what, $databoxes);
}
}