Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15456650
D21130.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D21130.diff
View Options
diff --git a/src/applications/differential/search/DifferentialRevisionFerretEngine.php b/src/applications/differential/search/DifferentialRevisionFerretEngine.php
--- a/src/applications/differential/search/DifferentialRevisionFerretEngine.php
+++ b/src/applications/differential/search/DifferentialRevisionFerretEngine.php
@@ -15,12 +15,4 @@
return new DifferentialRevisionSearchEngine();
}
- protected function getFunctionMap() {
- $map = parent::getFunctionMap();
-
- $map['body']['aliases'][] = 'summary';
-
- return $map;
- }
-
}
diff --git a/src/applications/maniphest/search/ManiphestTaskFerretEngine.php b/src/applications/maniphest/search/ManiphestTaskFerretEngine.php
--- a/src/applications/maniphest/search/ManiphestTaskFerretEngine.php
+++ b/src/applications/maniphest/search/ManiphestTaskFerretEngine.php
@@ -15,13 +15,4 @@
return new ManiphestTaskSearchEngine();
}
- protected function getFunctionMap() {
- $map = parent::getFunctionMap();
-
- $map['body']['aliases'][] = 'desc';
- $map['body']['aliases'][] = 'description';
-
- return $map;
- }
-
}
diff --git a/src/applications/search/ferret/PhabricatorFerretEngine.php b/src/applications/search/ferret/PhabricatorFerretEngine.php
--- a/src/applications/search/ferret/PhabricatorFerretEngine.php
+++ b/src/applications/search/ferret/PhabricatorFerretEngine.php
@@ -29,31 +29,22 @@
return $map[$function]['field'];
}
- protected function getFunctionMap() {
+ private function getFunctionMap() {
return array(
'all' => array(
'field' => PhabricatorSearchDocumentFieldType::FIELD_ALL,
- 'aliases' => array(
- 'any',
- ),
),
'title' => array(
'field' => PhabricatorSearchDocumentFieldType::FIELD_TITLE,
- 'aliases' => array(),
),
'body' => array(
'field' => PhabricatorSearchDocumentFieldType::FIELD_BODY,
- 'aliases' => array(),
),
'core' => array(
'field' => PhabricatorSearchDocumentFieldType::FIELD_CORE,
- 'aliases' => array(),
),
'comment' => array(
'field' => PhabricatorSearchDocumentFieldType::FIELD_COMMENT,
- 'aliases' => array(
- 'comments',
- ),
),
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 31, 11:03 AM (6 d, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7228097
Default Alt Text
D21130.diff (2 KB)
Attached To
Mode
D21130: Remove Ferret function aliases and overrides
Attached
Detach File
Event Timeline
Log In to Comment