Page MenuHomePhabricator

D18589.diff
No OneTemporary

D18589.diff

diff --git a/src/applications/search/fulltextstorage/PhabricatorFerretFulltextStorageEngine.php b/src/applications/search/fulltextstorage/PhabricatorFerretFulltextStorageEngine.php
--- a/src/applications/search/fulltextstorage/PhabricatorFerretFulltextStorageEngine.php
+++ b/src/applications/search/fulltextstorage/PhabricatorFerretFulltextStorageEngine.php
@@ -86,6 +86,10 @@
$type_results[$type] = $results;
$metadata += $engine_query->getFerretMetadata();
+
+ if (!$this->fulltextTokens) {
+ $this->fulltextTokens = $engine_query->getFerretTokens();
+ }
}
$list = array();
diff --git a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
--- a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
+++ b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
@@ -1469,6 +1469,17 @@
return $this;
}
+ public function getFerretTokens() {
+ if (!$this->supportsFerretEngine()) {
+ throw new Exception(
+ pht(
+ 'Query ("%s") does not support the Ferret fulltext engine.',
+ get_class($this)));
+ }
+
+ return $this->ferretTokens;
+ }
+
public function withFerretConstraint(
PhabricatorFerretEngine $engine,
array $fulltext_tokens) {

File Metadata

Mime Type
text/plain
Expires
Thu, May 9, 6:55 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6274329
Default Alt Text
D18589.diff (1 KB)

Event Timeline