Differential D20308 Diff 48505 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 130 Lines • ▼ Show 20 Lines | foreach ($phids as $phid) { | ||||
| PhabricatorSearchWorker::queueDocumentForIndexing( | PhabricatorSearchWorker::queueDocumentForIndexing( | ||||
| $phid, | $phid, | ||||
| $parameters, | $parameters, | ||||
| $is_strict); | $is_strict); | ||||
| if ($track_skips) { | if ($track_skips) { | ||||
| $new_versions = $this->loadIndexVersions($phid); | $new_versions = $this->loadIndexVersions($phid); | ||||
| if ($old_versions !== $new_versions) { | |||||
| if (!$old_versions && !$new_versions) { | |||||
| // If the document doesn't use an index version, both the lists | |||||
| // of versions will be empty. We still rebuild the index in this | |||||
| // case. | |||||
| $count_updated++; | |||||
| } else if ($old_versions !== $new_versions) { | |||||
| $count_updated++; | $count_updated++; | ||||
| } else { | } else { | ||||
| $count_skipped++; | $count_skipped++; | ||||
| } | } | ||||
| } | } | ||||
| $any_success = true; | $any_success = true; | ||||
| } catch (Exception $ex) { | } catch (Exception $ex) { | ||||
| ▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines | |||||