Page MenuHomePhabricator

D21130.diff
No OneTemporary

D21130.diff

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

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)

Event Timeline