@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class ProjectSearchConduitAPIMethod
4 extends PhabricatorSearchEngineAPIMethod {
5
6 public function getAPIMethodName() {
7 return 'project.search';
8 }
9
10 public function newSearchEngine() {
11 return new PhabricatorProjectSearchEngine();
12 }
13
14 public function getMethodSummary() {
15 return pht('Read information about projects.');
16 }
17
18 protected function getCustomQueryMaps($query) {
19 return array(
20 'slugMap' => $query->getSlugMap(),
21 );
22 }
23
24}