summaryrefslogtreecommitdiffstats
path: root/core/src/services/UnifiedSearchService.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/services/UnifiedSearchService.js')
-rw-r--r--core/src/services/UnifiedSearchService.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/services/UnifiedSearchService.js b/core/src/services/UnifiedSearchService.js
index 85526adffa2..9d0bf84d58f 100644
--- a/core/src/services/UnifiedSearchService.js
+++ b/core/src/services/UnifiedSearchService.js
@@ -28,7 +28,9 @@ import { loadState } from '@nextcloud/initial-state'
import axios from '@nextcloud/axios'
export const defaultLimit = loadState('unified-search', 'limit-default')
-export const minSearchLength = 2
+export const minSearchLength = loadState('unified-search', 'min-search-length', 2)
+export const enableLiveSearch = loadState('unified-search', 'live-search', true)
+
export const regexFilterIn = /[^-]in:([a-z_-]+)/ig
export const regexFilterNot = /-in:([a-z_-]+)/ig