diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-09-06 08:49:13 +0200 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2021-09-09 11:31:44 +0200 |
| commit | 660c1801705e56a81cf02574f48cc194fec95b1f (patch) | |
| tree | 5fd369a379dcd346198088fe54ec65fafd6915c1 /docs/dev/lxcdev.rst | |
| parent | fc20c561bf540d9b187a89a71730b6e3b0bee2da (diff) | |
[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.
Diffstat (limited to 'docs/dev/lxcdev.rst')
0 files changed, 0 insertions, 0 deletions