| Age | Commit message (Collapse) | Author |
|
[fix] openstreetmap engine: map "all" language to English
|
|
add
hint:Query hint:optimizer "None".
to the SPARQL query to keep the response time small.
It tells the optimizer to follow the path from ?item to the different property values
instead of the other way around.
See https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization#Property_paths
|
|
|
|
|
|
returns engine descriptions (JSON):
* key: engine name
* value: description in the user locale, use English description as a fallback
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[theme] remove categories, language and time range from index.html
|
|
|
|
|
|
|
|
close #323
|
|
3834942d - 2021-09-15 - ButterflyOfFire <butterflyoffire@protonmail.com>
|
|
[upd] upgrade httpx 0.19.0
|
|
If there is no write access, there is no need for global. Remove global
statement if there is no assignment.
global-variable-not-assigned:
Using global for names but no assignment is done Used when a variable is
defined through the "global" statement but no assignment to this variable is
done.
In Pylint 2.11 the global-variable-not-assigned checker now catches global
variables that are never reassigned in a local scope and catches (reassigned)
functions [1][2]
[1] https://pylint.pycqa.org/en/latest/whatsnew/2.11.html
[2] https://github.com/PyCQA/pylint/issues/1375
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
httpx.RequestError (subclass of httpx.HTTPError) has a property request.
This property raises a RuntimeError if the attributes _request is None.
To avoid a cascade of errors, this commit reads directly the _request attribute.
|
|
searx.client.new_client: the proxies parameter is a dictonnary,
and the protocol (key of the dictionnary) is already normalized
(see usage of searx.network.network.PROXY_PATTERN_MAPPING)
|
|
adjust searx.network module to the new internal API
see https://github.com/encode/httpx/pull/1522
|
|
debug mode: more readable logging
|
|
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
[fix] logger per engine: make .logger is always initialized
|
|
the openstreetmap engine imports code from the wikidata engine.
before this commit, specific code make sure to copy the logger variable to the wikidata engine.
with this commit searx.engines.load_engine makes sure the .logger is initialized.
The implementation scans sys.modules for module name starting with searx.engines.
|
|
|
|
|
|
[enh] add hostname_replace plugin
|
|
* backport of https://github.com/searx/searx/pull/2724
* allow to remove result if the replacement is the boolean value false
|
|
|
|
set:
* the root logger level to WARNING
* the werkzeug logger level to WARNING (useful when there is no uwsgi)
|
|
|
|
For example wikipedia requests use the logger name "searx.network.wikipedia"
Log is disable when searx_debug is False
|
|
in debug mode, add some padding to make the output more readable
in procution mode, add the timestamp
|
|
metrics & processors use the engine logger
|
|
fix PR #302
|
|
[mod] plugin: call on_result for each result of each engines.
|
|
|
|
|
|
see commit 6c9ae7911e9639bc46cd53af215734b4bdb61ba9
|
|
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.
|
|
doi_resolvers.get_value('preferences') already contains the value from
request.args.get('doi_resolver')
|
|
[fix] make HTML templates more CSP compliant
|
|
|
|
Suggested-by: @dalf https://github.com/searxng/searxng/pull/295#discussion_r703337237
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|