diff --git a/src/applications/files/query/PhabricatorFileSearchEngine.php b/src/applications/files/query/PhabricatorFileSearchEngine.php --- a/src/applications/files/query/PhabricatorFileSearchEngine.php +++ b/src/applications/files/query/PhabricatorFileSearchEngine.php @@ -17,6 +17,9 @@ protected function buildCustomSearchFields() { return array( + id(new PhabricatorSearchTextField()) + ->setKey('name') + ->setLabel(pht('Name')), id(new PhabricatorUsersSearchField()) ->setKey('authorPHIDs') ->setAliases(array('author', 'authors')) @@ -48,6 +51,10 @@ protected function buildQueryFromParameters(array $map) { $query = $this->newQuery(); + if ($map['name'] !== null) { + $query->withNames(array($map['name'])); + } + if ($map['authorPHIDs']) { $query->withAuthorPHIDs($map['authorPHIDs']); }