Page MenuHomePhabricator

D18587.id44638.diff
No OneTemporary

D18587.id44638.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
Tue, Nov 5, 7:30 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6710845
Default Alt Text
D18587.id44638.diff (1 KB)

Event Timeline