Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I'm working on a plugin that is supposed to filter the results from the engines based on certain criteria i can check in the plugin.
I use the on_result hook, which works fine for changing results as seen in the remove_tracker plugin, but it seems i can not remove certain results in this hook.
Is there a way to make this happen i did not see?
I currently solved it with a workaround by specifying a different template with a "filtered" = true on the result, which if it's true is not shown by this template. However, this means that my plugin needs to provide a template for each theme there is in searx to let this work for all themes.
Current prototype code is here: https://github.com/thegreenwebfoundation/searx/pull/1/files