SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Find a file
Markus Heiser 19e41c137e [mod] set 'engine.supported_languages' from the origin python module
The key of the dictionary 'searx.data.ENGINES_LANGUAGES' is the *engine name*
configured in settings.xml.  When multiple engines are configured to use the
same origin engine (e.g. `engine: google`)::

    - name: google
      engine: google
      use_mobile_ui: false
      ...

    - name: google italian
      engine: google
      use_mobile_ui: false
      language: it
      ...

    - name: google mobile ui
      engine: google
      shortcut: gomui
      use_mobile_ui: true

There exists no entry for ENGINES_LANGUAGES[engine.name] (e.g. `name: google
mobile ui` or `name: google italian`).  This issue can be solved by recreate the
ENGINES_LANGUAGES::

    make data.languages

But this is nothing an SearXNG admin would like to do when just configuring
additional engines, since this just doubles entries in ENGINES_LANGUAGES and
BTW: `make data.languages` has various external requirements which might be not
installed or not available, on a production host.

With this patch, if engine.name fails, ENGINES_LANGUAGES[engine.engine] is used
to get the engine.supported_languages (e.g. `google` for the engine named
`google mobile`).

For an engine, when there is `language: ...` in the YAML settings, the engine
supports only one language, in this case engine.supported_languages should
contains this value defined in settings.yml (e.g. `it` for the engine named
`google italian`).

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Closes: https://github.com/searxng/searxng/issues/384
2021-10-07 08:45:02 +02:00
.github SearXNG: searxng_extra 2021-10-02 17:30:39 +02:00
dockerfiles SearXNG: SEARXNG_SETTINGS_PATH 2021-10-02 17:18:05 +02:00
docs Merge pull request #375 from dalf/searxng_extra 2021-10-03 19:09:07 +02:00
examples Fix whitespaces 2016-07-11 18:52:37 +07:00
searx [mod] set 'engine.supported_languages' from the origin python module 2021-10-07 08:45:02 +02:00
searxng_extra [mod] searxng_extras - minor improvements 2021-10-03 19:04:18 +02:00
tests Merge pull request #375 from dalf/searxng_extra 2021-10-03 19:09:07 +02:00
utils SearXNG: SEARXNG_SETTINGS_PATH 2021-10-02 17:18:05 +02:00
.config.sh SearXNG: SEARXNG_SETTINGS_PATH 2021-10-02 17:18:05 +02:00
.coveragerc [mod] use github actions instead of travis 2020-11-17 15:09:06 +01:00
.dir-locals.el [mod] simple theme - add ESLint 2021-08-31 12:20:23 +02:00
.dockerignore [fix] tidy up ignore lists .gitignore & .dockerignore 2021-06-22 16:55:30 +02:00
.gitattributes [fix] update .gitattributes 2021-06-22 20:34:39 +02:00
.gitignore [fix] tidy up ignore lists .gitignore & .dockerignore 2021-06-22 16:55:30 +02:00
.pylintrc [pylint] disable consider-using-f-string in .pylintrc 2021-09-17 09:22:11 +02:00
.weblate [translations] web integration 2021-08-07 15:06:06 +02:00
.yamllint.yml [enh] add test.yamllint - lint yaml files 2021-06-05 17:41:24 +02:00
AUTHORS.rst [mod] engines - add IMDB / Internet Movie Database 2021-10-03 11:44:25 +02:00
babel.cfg babel.cfg: ignore node_modules directories 2021-08-02 09:44:13 +02:00
CHANGELOG.rst SearXNG: SEARX_BIND_ADDRESS 2021-10-02 16:58:09 +02:00
CONTRIBUTING.md [brand] searxng -- fix links to issue tracker & WEB-GUI 2021-04-25 14:25:08 +02:00
Dockerfile SearXNG: SEARXNG_SETTINGS_PATH 2021-10-02 17:18:05 +02:00
LICENSE [fix] full AGPLv3+ license according to #382 2015-07-04 18:23:54 +02:00
Makefile SearXNG: environment variables 2021-10-02 16:54:11 +02:00
manage [fix] commit message of 'make weblate.push.translations' 2021-10-04 11:09:30 +02:00
PULL_REQUEST_TEMPLATE.md Add PR template and contribution guidelines 2020-07-10 17:10:02 +02:00
README.rst [fix] README - fix minor typo 2021-09-08 09:00:48 +02:00
requirements-dev.txt Merge pull request #325 from searxng/dependabot/pip/master/pylint-2.11.1 2021-09-17 11:36:51 +02:00
requirements.txt [upd] upgrade httpx 0.19.0 2021-09-17 10:06:22 +02:00
setup.py SearXNG: searxng_extra 2021-10-02 17:30:39 +02:00

searx install searx homepage searx wiki AGPL License Issues commits weblate

Privacy-respecting, hackable metasearch engine

If you are looking for running instances, ready to use, then visit searx.space.

Otherwise jump to the user, admin and developer handbooks you will find on our homepage.

SearXNG is a fork of searx: