Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14009907
D18589.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18589.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 1, 2:01 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6713979
Default Alt Text
D18589.diff (1 KB)
Attached To
Mode
D18589: Return fulltext tokens from the Ferret fulltext engine
Attached
Detach File
Event Timeline
Log In to Comment