summaryrefslogtreecommitdiff
path: root/searx/settings_defaults.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-04-22 13:47:54 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-05-07 17:58:30 +0200
commit444b1e70dbcfd258482b5ee258895593a0a2e42c (patch)
tree9aad1c9f74743697b6de8f50d592397c5cf6e7c9 /searx/settings_defaults.py
parented2a4c80879d2d3741514ea1117ab672b8f55d54 (diff)
downloadsearxng-444b1e70dbcfd258482b5ee258895593a0a2e42c.tar.gz
searxng-444b1e70dbcfd258482b5ee258895593a0a2e42c.zip
[mod] add setting: search.autocomplete_min
Minimun characters to type before autocompleter starts. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/settings_defaults.py')
-rw-r--r--searx/settings_defaults.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py
index 7110fce93..938b9714d 100644
--- a/searx/settings_defaults.py
+++ b/searx/settings_defaults.py
@@ -153,6 +153,7 @@ SCHEMA = {
'search': {
'safe_search': SettingsValue((0, 1, 2), 0),
'autocomplete': SettingsValue(str, ''),
+ 'autocomplete_min': SettingsValue(int, 4),
'default_lang': SettingsValue(tuple(LANGUAGE_CODES + ['']), ''),
'languages': SettingSublistValue(LANGUAGE_CODES, LANGUAGE_CODES),
'ban_time_on_fail': SettingsValue(numbers.Real, 5),