Differential D14834 Diff 35888 src/applications/search/management/PhabricatorSearchManagementIndexWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/management/PhabricatorSearchManagementIndexWorkflow.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | foreach ($groups as $group_type => $group) { | ||||
"%s\n", | "%s\n", | ||||
pht('Indexing %d object(s) of type %s.', count($group), $group_type)); | pht('Indexing %d object(s) of type %s.', count($group), $group_type)); | ||||
} | } | ||||
$bar = id(new PhutilConsoleProgressBar()) | $bar = id(new PhutilConsoleProgressBar()) | ||||
->setTotal(count($phids)); | ->setTotal(count($phids)); | ||||
$any_success = false; | $any_success = false; | ||||
$indexer = new PhabricatorSearchIndexer(); | |||||
foreach ($phids as $phid) { | foreach ($phids as $phid) { | ||||
try { | try { | ||||
$indexer->queueDocumentForIndexing($phid); | PhabricatorSearchWorker::queueDocumentForIndexing($phid); | ||||
$any_success = true; | $any_success = true; | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
phlog($ex); | phlog($ex); | ||||
} | } | ||||
$bar->update(1); | $bar->update(1); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |