]> source.dussan.org Git - nextcloud-server.git/commitdiff
Enable new global search by default 41729/head
authorfenn-cs <fenn25.fn@gmail.com>
Fri, 24 Nov 2023 09:40:36 +0000 (10:40 +0100)
committerfenn-cs <fenn25.fn@gmail.com>
Thu, 30 Nov 2023 11:20:13 +0000 (12:20 +0100)
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>
lib/private/TemplateLayout.php

index 2adf3c5e6929be7143c603439ac6a43f141fb763..b8c8f5b8e676a9c53b4145a745af78e0bc7122de 100644 (file)
@@ -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');