mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-02-02 06:38:42 -05:00
b4dbff6a6a
element "totalResults" is included twice (at begin & end), only the element after performing the search holds number > 0 see http://mantis.tokeek.de/view.php?id=608
25 lines
813 B
JSON
25 lines
813 B
JSON
#[jsonp-start]#
|
|
{
|
|
"channels": [{
|
|
"title": "YaCy P2P-Search for #[rss_query]#",
|
|
"description": "Search for #[rss_query]#",
|
|
"link": "#[searchBaseURL]#?query=#[rss_queryenc]#&resource=#[resource]#&contentdom=#[contentdom]#",
|
|
"image": {
|
|
"url": "#[rssYacyImageURL]#",
|
|
"title": "Search for #[rss_query]#",
|
|
"link": "#[searchBaseURL]#?query=#[rss_queryenc]#&resource=#[resource]#&contentdom=#[contentdom]#"
|
|
},
|
|
"startIndex": "#[num-results_offset]#",
|
|
"itemsPerPage": "#[num-results_itemsPerPage]#",
|
|
"searchTerms": "#[rss_queryenc]#",
|
|
|
|
"items": [
|
|
#{results}#
|
|
<!--#include virtual="yacysearchitem.json?item=#[item]#&eventID=#[eventID]#" -->
|
|
#{/results}#
|
|
],
|
|
<!--#include virtual="yacysearchtrailer.json?eventID=#[eventID]#" -->
|
|
}]
|
|
}
|
|
#[jsonp-end]#
|