summaryrefslogtreecommitdiff
path: root/searx/engines/openstreetmap.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2023-08-23 18:30:21 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-08-26 07:47:07 +0200
commit0647f83a3ea3ce2bd8c5f5fc59bb676be2a790e2 (patch)
tree7c0e38beb0f1b9f502afa4f31995094bc57c30cf /searx/engines/openstreetmap.py
parent7d806d102077ee5ce342daedd5e6a498b599ef6f (diff)
downloadsearxng-0647f83a3ea3ce2bd8c5f5fc59bb676be2a790e2.tar.gz
searxng-0647f83a3ea3ce2bd8c5f5fc59bb676be2a790e2.zip
[fix] google engine: don't overspecify the search query to Google
The method EngineTraits.get_region(..) returns engine's region string that **best fits** to SearXNG's locale. This means it returns a region (country) if only a language is set in the locale. By example the method returns for a locale tag `es` a region `ES`. Google's search parameter `cr` restricts search results to documents originating in a particular country / in case of a locale tag (language) as described above, this argument should be unset in the query send to Google. Closes: https://github.com/searxng/searxng/issues/2672 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/openstreetmap.py')
0 files changed, 0 insertions, 0 deletions