From 3e9cc1474fd4c3d844d7c1eb6c82164486082e27 Mon Sep 17 00:00:00 2001 From: jibe-b Date: Wed, 1 Nov 2017 22:26:33 +0100 Subject: [PATCH 1/2] [add] OpenAIRE publication engine and modifies OpenAIRE datasets engine --- searx/settings.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index 067a842e4..29028608e 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -415,7 +415,7 @@ engines: shortcut : nt disabled : True - - name : openaire + - name : openairedatasets engine : json_engine paging : True search_url : http://api.openaire.eu/search/datasets?format=json&page={pageno}&size=10&title={query} @@ -424,7 +424,18 @@ engines: title_query : metadata/oaf:entity/oaf:result/title/$ content_query : metadata/oaf:entity/oaf:result/description/$ categories : science - shortcut : oa + shortcut : oad + timeout: 5.0 + + - name : openairepublications + paging : True + search_url : http://api.openaire.eu/search/publications?format=json&page={pageno}&size=10&title={query} + results_query : response/results/result + url_query : metadata/oaf:entity/oaf:result/children/instance/webresource/url/$ + title_query : metadata/oaf:entity/oaf:result/title/$ + content_query : metadata/oaf:entity/oaf:result/description/$ + categories : science + shortcut : oap timeout: 5.0 - name : openstreetmap From b7eb80122e6913ef0a00c64eb0d1a205624bb5d9 Mon Sep 17 00:00:00 2001 From: jibe-b Date: Thu, 2 Nov 2017 00:10:08 +0100 Subject: [PATCH 2/2] [fix] update openairepublications --- searx/settings.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/searx/settings.yml b/searx/settings.yml index 29028608e..b6c6d49d1 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -428,6 +428,7 @@ engines: timeout: 5.0 - name : openairepublications + engine : json_engine paging : True search_url : http://api.openaire.eu/search/publications?format=json&page={pageno}&size=10&title={query} results_query : response/results/result