diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2023-03-05 08:29:58 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2023-03-05 08:29:58 +0100 |
commit | 150a90c84e4191d8a9d7697ce3983e556fb3aab1 (patch) | |
tree | c63b3feeb085b17152a3b1463faf67dfb2974c62 /searx/search | |
parent | abd2d8605eae4f73b9e3f6445aa8f34dbd4ce38c (diff) | |
download | searxng-150a90c84e4191d8a9d7697ce3983e556fb3aab1.tar.gz searxng-150a90c84e4191d8a9d7697ce3983e556fb3aab1.zip |
[fix] fix threshold in replace_auto_language
[1] https://github.com/searxng/searxng/pull/2027#pullrequestreview-1322157677
[2] https://github.com/searxng/searxng/pull/1969#issuecomment-1345354529
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/search')
-rw-r--r-- | searx/search/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/search/__init__.py b/searx/search/__init__.py index c5f225aa4..e5465880c 100644 --- a/searx/search/__init__.py +++ b/searx/search/__init__.py @@ -54,7 +54,7 @@ def replace_auto_language(search_query: SearchQuery): if search_query.lang != 'auto': return - detected_lang = detect_language(search_query.query, threshold=0.0, only_search_languages=True) + detected_lang = detect_language(search_query.query, threshold=0.3, only_search_languages=True) if detected_lang is None: # fallback to 'all' if no language has been detected search_query.lang = 'all' |