summaryrefslogtreecommitdiffstats
path: root/lib/private/TemplateLayout.php
diff options
context:
space:
mode:
authorfenn-cs <fenn25.fn@gmail.com>2023-11-24 10:40:36 +0100
committerfenn-cs <fenn25.fn@gmail.com>2023-11-30 12:20:13 +0100
commitb5981f67b4af6ed0217e8af1a62dcfc60c1aed3b (patch)
tree4738750c34bc6dd6dc51aca4d3a4e99fa5c8625a /lib/private/TemplateLayout.php
parentef3b1a86ebac1b116740a815d2b8ebace53b3980 (diff)
downloadnextcloud-server-b5981f67b4af6ed0217e8af1a62dcfc60c1aed3b.tar.gz
nextcloud-server-b5981f67b4af6ed0217e8af1a62dcfc60c1aed3b.zip
Enable new global search by default
The new global search would now be activated by default and users, have the option to revert to the old unified search by setting `unified_search.enabled` to true in the NC `config.php` file. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'lib/private/TemplateLayout.php')
-rw-r--r--lib/private/TemplateLayout.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 2adf3c5e692..b8c8f5b8e67 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -108,11 +108,8 @@ class TemplateLayout extends \OC_Template {
$this->initialState->provideInitialState('core', 'active-app', $this->navigationManager->getActiveEntry());
$this->initialState->provideInitialState('core', 'apps', $this->navigationManager->getAll());
- /*
- * NB : Unified search enabled, defaults to true since new advanced search is
- * unstable. Once we think otherwise, the default should be false.
- */
- if ($this->config->getSystemValueBool('unified_search.enabled', true)) {
+
+ if ($this->config->getSystemValueBool('unified_search.enabled', false)) {
$this->initialState->provideInitialState('unified-search', 'limit-default', (int)$this->config->getAppValue('core', 'unified-search.limit-default', (string)SearchQuery::LIMIT_DEFAULT));
$this->initialState->provideInitialState('unified-search', 'min-search-length', (int)$this->config->getAppValue('core', 'unified-search.min-search-length', (string)1));
$this->initialState->provideInitialState('unified-search', 'live-search', $this->config->getAppValue('core', 'unified-search.live-search', 'yes') === 'yes');