diff options
author | Alexandre Flament <alex@al-f.net> | 2022-06-11 10:50:11 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-06-11 10:50:11 +0200 |
commit | d068b67a7193780787a7cc166a1dd208cf5eb9b2 (patch) | |
tree | 110715b6b25268f54c49e33ff561eacb9eccb1a0 /searx | |
parent | 59ef9b9287f1beda12f7b9a20b93cbc378a22bac (diff) | |
download | searxng-d068b67a7193780787a7cc166a1dd208cf5eb9b2.tar.gz searxng-d068b67a7193780787a7cc166a1dd208cf5eb9b2.zip |
Wikidata engine: minor change of the SPARQL request
The engine can be slow especially when the query won't return any answer.
See https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI#Find_articles_in_Wikipedia_speaking_about_cheese_and_see_which_Wikibase_items_they_correspond_to
Related to #1290
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/wikidata.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/engines/wikidata.py b/searx/engines/wikidata.py index b7c318e53..b93cfd223 100644 --- a/searx/engines/wikidata.py +++ b/searx/engines/wikidata.py @@ -65,6 +65,7 @@ WHERE mwapi:language "%LANGUAGE%". ?item wikibase:apiOutputItem mwapi:item. } + hint:Prior hint:runFirst "true". %WHERE% |