diff --git a/docs/admin/settings/settings_search.rst b/docs/admin/settings/settings_search.rst index 2aaa4795d..5e11fc810 100644 --- a/docs/admin/settings/settings_search.rst +++ b/docs/admin/settings/settings_search.rst @@ -8,7 +8,7 @@ search: safe_search: 0 - autocomplete: "" + autocomplete: "duckduckgo" favicon_resolver: "" default_lang: "" ban_time_on_fail: 5 @@ -32,7 +32,7 @@ - ``2``: Strict ``autocomplete``: - Existing autocomplete backends, leave blank to turn it off. + Existing autocomplete backends, set blank to turn it off. - ``360search`` - ``baidu`` diff --git a/docs/admin/settings/settings_server.rst b/docs/admin/settings/settings_server.rst index dabfc259c..7b677d695 100644 --- a/docs/admin/settings/settings_server.rst +++ b/docs/admin/settings/settings_server.rst @@ -14,7 +14,7 @@ limiter: false public_instance: false image_proxy: false - method: "POST" + method: "GET" default_http_headers: X-Content-Type-Options : nosniff X-Download-Options : noopen @@ -58,8 +58,8 @@ ``method`` : ``GET`` | ``POST`` - HTTP method. By defaults ``POST`` is used / The ``POST`` method has the - advantage with some WEB browsers that the history is not easy to read, but + HTTP method. By default, ``GET`` is used / The ``POST`` method has the + advantage with some browsers that the history is not saved, but there are also various disadvantages that sometimes **severely restrict the ease of use for the end user** (e.g. back button to jump back to the previous search page and drag & drop of search term to new tabs do not work as diff --git a/searx/settings.yml b/searx/settings.yml index 1650a484d..7acb40bc2 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -41,9 +41,9 @@ search: # Filter results. 0: None, 1: Moderate, 2: Strict safe_search: 0 # Existing autocomplete backends: "360search", "baidu", "bing", "brave", "dbpedia", "duckduckgo", "google", - # "kagi", "yandex", "privacywall", "mwmbl", "naver", "seznam", "sogou", "startpage", "swisscows", "quark", - # "qwant", "wikipedia" - leave blank to turn it off by default. - autocomplete: "" + # "yandex", "privacywall", "mwmbl", "naver", "seznam", "sogou", "startpage", "swisscows", "quark", "qwant", + # "wikipedia" - set blank to turn it off by default. + autocomplete: "duckduckgo" # minimun characters to type before autocompleter starts autocomplete_min: 4 # backend for the favicon near URL in search results. @@ -107,11 +107,10 @@ server: image_proxy: false # 1.0 and 1.1 are supported http_protocol_version: "1.0" - # POST queries are "more secure!" but are also the source of hard-to-locate - # annoyances, which is why GET may be better for end users and their browsers. + # POST keeps search queries out of the browsers history, but causes UX issues. # see https://github.com/searxng/searxng/pull/3619 # Is overwritten by ${SEARXNG_METHOD} - method: "POST" + method: "GET" default_http_headers: X-Content-Type-Options: nosniff X-Download-Options: noopen diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index c23ebd956..5fed08b68 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -192,7 +192,7 @@ SCHEMA: dict[str, t.Any] = { 'brand': SettingsBrand, 'search': { 'safe_search': SettingsValue((0, 1, 2), 0), - 'autocomplete': SettingsValue(str, ''), + 'autocomplete': SettingsValue(str, 'duckduckgo'), 'autocomplete_min': SettingsValue(int, 4), 'favicon_resolver': SettingsValue(str, ''), 'default_lang': SettingsValue(tuple(SXNG_LOCALE_TAGS + ['']), ''), @@ -219,7 +219,7 @@ SCHEMA: dict[str, t.Any] = { 'base_url': SettingsValue((False, str), False, 'SEARXNG_BASE_URL'), 'image_proxy': SettingsValue(bool, False, 'SEARXNG_IMAGE_PROXY'), 'http_protocol_version': SettingsValue(('1.0', '1.1'), '1.0'), - 'method': SettingsValue(('POST', 'GET'), 'POST', 'SEARXNG_METHOD'), + 'method': SettingsValue(('POST', 'GET'), 'GET', 'SEARXNG_METHOD'), 'default_http_headers': SettingsValue(dict, {}), }, # redis is deprecated .. diff --git a/searx/templates/simple/elements/apis.html b/searx/templates/simple/elements/apis.html index d1d5ec60d..d09fa758d 100644 --- a/searx/templates/simple/elements/apis.html +++ b/searx/templates/simple/elements/apis.html @@ -4,7 +4,7 @@