diff --git a/src/applications/search/fulltextstorage/PhabricatorMySQLFulltextStorageEngine.php b/src/applications/search/fulltextstorage/PhabricatorMySQLFulltextStorageEngine.php --- a/src/applications/search/fulltextstorage/PhabricatorMySQLFulltextStorageEngine.php +++ b/src/applications/search/fulltextstorage/PhabricatorMySQLFulltextStorageEngine.php @@ -238,7 +238,7 @@ } else { $select[] = qsprintf( $conn, - 'document.dateCreated AS fieldScore'); + 'document.documentCreated AS fieldScore'); } $exclude = $query->getParameter('exclude'); diff --git a/src/infrastructure/cluster/PhabricatorDatabaseRef.php b/src/infrastructure/cluster/PhabricatorDatabaseRef.php --- a/src/infrastructure/cluster/PhabricatorDatabaseRef.php +++ b/src/infrastructure/cluster/PhabricatorDatabaseRef.php @@ -635,7 +635,7 @@ $application_replicas = array(); $default_replicas = array(); foreach ($replicas as $replica) { - $master = $replica->getMaster(); + $master = $replica->getMasterRef(); if ($master->isApplicationHost($application)) { $application_replicas[] = $replica;