@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add "fulltext" to Maniphest pro search

Summary: Restores this field to the new ApplicationSearch-based search.

Test Plan: Used fulltext search to find tasks.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D6950

+14 -1
+2 -1
src/applications/maniphest/query/ManiphestTaskQuery.php
··· 425 425 } 426 426 427 427 private function buildFullTextWhereClause(AphrontDatabaseConnection $conn) { 428 - if (!$this->fullTextSearch) { 428 + if (!strlen($this->fullTextSearch)) { 429 429 return null; 430 430 } 431 431 ··· 434 434 $fulltext_query = new PhabricatorSearchQuery(); 435 435 $fulltext_query->setQuery($this->fullTextSearch); 436 436 $fulltext_query->setParameter('limit', PHP_INT_MAX); 437 + $fulltext_query->setParameter('type', ManiphestPHIDTypeTask::TYPECONST); 437 438 438 439 $engine = PhabricatorSearchEngineSelector::newSelector()->newEngine(); 439 440 $fulltext_results = $engine->executeSearch($fulltext_query);
+12
src/applications/maniphest/query/ManiphestTaskSearchEngine.php
··· 31 31 } 32 32 $saved->setParameter('ids', $ids); 33 33 34 + $saved->setParameter('fulltext', $request->getStr('fulltext')); 35 + 34 36 return $saved; 35 37 } 36 38 ··· 73 75 $ids = $saved->getParameter('ids'); 74 76 if ($ids) { 75 77 $query->withIDs($ids); 78 + } 79 + 80 + $fulltext = $saved->getParameter('fulltext'); 81 + if (strlen($fulltext)) { 82 + $query->withFullTextSearch($fulltext); 76 83 } 77 84 78 85 return $query; ··· 158 165 ->setLabel(pht('Order')) 159 166 ->setValue($saved->getParameter('order')) 160 167 ->setOptions($this->getOrderOptions())) 168 + ->appendChild( 169 + id(new AphrontFormTextControl()) 170 + ->setName('fulltext') 171 + ->setLabel(pht('Contains Text')) 172 + ->setValue($saved->getParameter('fulltext'))) 161 173 ->appendChild( 162 174 id(new AphrontFormTextControl()) 163 175 ->setName('ids')