mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Revert "PHRAS-714_thesaurus_indexation"
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user