Page MenuHomePhabricator

D18587.diff
No OneTemporary

D18587.diff

diff --git a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
--- a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
+++ b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
@@ -324,6 +324,9 @@
$result = $head + $body + $tail;
+ // Force the fulltext "query" field to the top unconditionally.
+ $result = array_select_keys($result, array('query')) + $result;
+
foreach ($this->getHiddenFields() as $hidden_key) {
unset($result[$hidden_key]);
}
diff --git a/src/applications/search/engineextension/PhabricatorFerretSearchEngineExtension.php b/src/applications/search/engineextension/PhabricatorFerretSearchEngineExtension.php
--- a/src/applications/search/engineextension/PhabricatorFerretSearchEngineExtension.php
+++ b/src/applications/search/engineextension/PhabricatorFerretSearchEngineExtension.php
@@ -6,7 +6,7 @@
const EXTENSIONKEY = 'ferret';
public function isExtensionEnabled() {
- return PhabricatorEnv::getEnvConfig('phabricator.show-prototypes');
+ return true;
}
public function getExtensionName() {
@@ -56,7 +56,7 @@
$fields[] = id(new PhabricatorSearchTextField())
->setKey('query')
- ->setLabel(pht('Query (Prototype)'))
+ ->setLabel(pht('Query'))
->setDescription(pht('Fulltext search.'));
return $fields;

File Metadata

Mime Type
text/plain
Expires
Sun, May 12, 3:50 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6281643
Default Alt Text
D18587.diff (1 KB)

Event Timeline