searxngRebrandZaclys/searx
Alexandre Flament 660c180170 [mod] plugin: call on_result after each engine from the ResultContainer
Currently, searx.search.Search calls on_result once the engine results have been merged
(ResultContainer.order_results).

on_result plugins can rewrite the results: once the URL(s) are modified, even they can be merged,
it won't be the case since ResultContainer.order_results has already be called.

This commit call on_result inside for each result of each engines.
In addition the on_result function can return False to remove the result.

Note: the on_result function now run on the engine thread instead of the Flask thread.
2021-09-09 11:31:44 +02:00
..
answerers [fix] answers: don't crash when the query is an empty string 2021-03-01 10:52:39 +01:00
data Merge pull request #278 from searxng/update_data_update_ahmia_blacklist.py 2021-09-01 06:48:55 +00:00
engines [pylint] engines: drop no longer needed 'missing-function-docstring' 2021-09-07 13:26:59 +02:00
metrics [pylint] searx: drop no longer needed 'missing-function-docstring' 2021-09-07 13:34:35 +02:00
network [pylint] searx: drop no longer needed 'missing-function-docstring' 2021-09-07 13:34:35 +02:00
plugins [mod] oa_doi_rewrite plugin: get_doi_resolver: remove args parameter 2021-09-07 19:14:36 +02:00
search [mod] plugin: call on_result after each engine from the ResultContainer 2021-09-09 11:31:44 +02:00
shared [fix] checker: don't run the checker when uwsgi is not properly configured 2021-01-13 14:07:39 +01:00
static [build] /static 2021-09-07 17:48:56 +02:00
templates [fix] oscar template - merge the two class attributes into one 2021-09-07 16:46:49 +02:00
translations [translations] update 2021-09-03 07:16:39 +00:00
__init__.py [pylint] searx: drop no longer needed 'missing-function-docstring' 2021-09-07 13:34:35 +02:00
autocomplete.py [httpx] replace searx.poolrequests by searx.network 2021-04-12 17:25:56 +02:00
exceptions.py [enh] add raise_for_httperror 2020-12-11 14:37:08 +01:00
external_bang.py [mod] add utils/fetch_external_bangs.py 2021-02-24 18:48:36 +01:00
external_urls.py [enh] openstreetmap / map template: improve results 2021-06-09 18:08:23 +02:00
flaskfix.py [pylint] searx: drop no longer needed 'missing-function-docstring' 2021-09-07 13:34:35 +02:00
languages.py [fix] get common used languages back (min_engines_per_lang = 13) 2021-08-01 13:04:24 +02:00
locales.py [mod] searx/locales.py: language names based on Unicode CLDR 2021-08-04 09:50:34 +02:00
preferences.py [pylint] searx: drop no longer needed 'missing-function-docstring' 2021-09-07 13:34:35 +02:00
query.py [enh] autocomplete refactoring, autocomplete on external bangs 2021-03-01 19:12:32 +01:00
results.py [mod] plugin: call on_result after each engine from the ResultContainer 2021-09-09 11:31:44 +02:00
settings_defaults.py [pylint] searx: drop no longer needed 'missing-function-docstring' 2021-09-07 13:34:35 +02:00
settings_loader.py [fix] unit test: don't load /etc/searx/settings.yml 2021-05-18 17:23:21 +02:00
settings.yml Merge pull request #287 from return42/azlyrics 2021-09-04 13:36:09 +02:00
unixthreadname.py [pylint] searx: drop no longer needed 'missing-function-docstring' 2021-09-07 13:34:35 +02:00
utils.py [mod] searx.utils.dict_subset: rewrite with comprehension 2021-08-24 15:28:08 +02:00
version.py [pylint] searx: drop no longer needed 'missing-function-docstring' 2021-09-07 13:34:35 +02:00
webadapter.py [fix] typo in searx.webadapter.parse_lang 2021-09-04 08:39:45 +02:00
webapp.py [mod] oa_doi_rewrite plugin: get_doi_resolver: remove args parameter 2021-09-07 19:14:36 +02:00
webutils.py [mod] move all default settings into searx.settings_defaults 2021-06-01 08:10:15 +02:00