summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-11-11 01:35:02 +0000
committerChristopher Ng <chrng8@gmail.com>2022-11-11 01:35:02 +0000
commit6c09155e13826f978ddff906c77e9711b1563ac6 (patch)
tree78a237329fb1fbf65584825916c0395ace49c5d2 /core
parentc1ba14ad00cc751f1e5aed4794b7f673462d0a00 (diff)
downloadnextcloud-server-6c09155e13826f978ddff906c77e9711b1563ac6.tar.gz
nextcloud-server-6c09155e13826f978ddff906c77e9711b1563ac6.zip
Allow single character search by default
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/src/services/UnifiedSearchService.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/services/UnifiedSearchService.js b/core/src/services/UnifiedSearchService.js
index f365a378e0c..3c673479771 100644
--- a/core/src/services/UnifiedSearchService.js
+++ b/core/src/services/UnifiedSearchService.js
@@ -28,7 +28,7 @@ import { loadState } from '@nextcloud/initial-state'
import axios from '@nextcloud/axios'
export const defaultLimit = loadState('unified-search', 'limit-default')
-export const minSearchLength = loadState('unified-search', 'min-search-length', 2)
+export const minSearchLength = loadState('unified-search', 'min-search-length', 1)
export const enableLiveSearch = loadState('unified-search', 'live-search', true)
export const regexFilterIn = /(^|\s)in:([a-z_-]+)/ig