Skip to content

Commit e5c5bdc

Browse files
committed
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 <[email protected]>
1 parent eeba809 commit e5c5bdc

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

lib/private/TemplateLayout.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,8 @@ public function __construct($renderAs, $appId = '') {
108108

109109
$this->initialState->provideInitialState('core', 'active-app', $this->navigationManager->getActiveEntry());
110110
$this->initialState->provideInitialState('core', 'apps', $this->navigationManager->getAll());
111-
/*
112-
* NB : Unified search enabled, defaults to true since new advanced search is
113-
* unstable. Once we think otherwise, the default should be false.
114-
*/
115-
if ($this->config->getSystemValueBool('unified_search.enabled', true)) {
111+
112+
if ($this->config->getSystemValueBool('unified_search.enabled', false)) {
116113
$this->initialState->provideInitialState('unified-search', 'limit-default', (int)$this->config->getAppValue('core', 'unified-search.limit-default', (string)SearchQuery::LIMIT_DEFAULT));
117114
$this->initialState->provideInitialState('unified-search', 'min-search-length', (int)$this->config->getAppValue('core', 'unified-search.min-search-length', (string)1));
118115
$this->initialState->provideInitialState('unified-search', 'live-search', $this->config->getAppValue('core', 'unified-search.live-search', 'yes') === 'yes');

0 commit comments

Comments
 (0)