#!/usr/bin/env php loadAll(); $count = count($revs); echo "Reindexing {$count} revisions"; foreach ($revs as $rev) { PhabricatorSearchDifferentialIndexer::indexRevision($rev); echo '.'; } echo "\n"; echo "Loading tasks...\n"; $tasks = id(new ManiphestTask())->loadAll(); $count = count($tasks); echo "Reindexing {$count} tasks"; foreach ($tasks as $task) { PhabricatorSearchManiphestIndexer::indexTask($task); echo '.'; } echo "\n"; echo "Done.\n";