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

Return fulltext tokens from the Ferret fulltext engine

Summary:
Ref T12819. These render the little "Searched For: X, Y, U V" hint about how something was parsed.

(This might get a "substring" color or "title only" color or something in the future.)

Test Plan: {F5178807}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12819

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

+15
+4
src/applications/search/fulltextstorage/PhabricatorFerretFulltextStorageEngine.php
··· 86 86 $type_results[$type] = $results; 87 87 88 88 $metadata += $engine_query->getFerretMetadata(); 89 + 90 + if (!$this->fulltextTokens) { 91 + $this->fulltextTokens = $engine_query->getFerretTokens(); 92 + } 89 93 } 90 94 91 95 $list = array();
+11
src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
··· 1469 1469 return $this; 1470 1470 } 1471 1471 1472 + public function getFerretTokens() { 1473 + if (!$this->supportsFerretEngine()) { 1474 + throw new Exception( 1475 + pht( 1476 + 'Query ("%s") does not support the Ferret fulltext engine.', 1477 + get_class($this))); 1478 + } 1479 + 1480 + return $this->ferretTokens; 1481 + } 1482 + 1472 1483 public function withFerretConstraint( 1473 1484 PhabricatorFerretEngine $engine, 1474 1485 array $fulltext_tokens) {