yacy_search_server/htroot/yacysearch.json
orbiter 12d81e98eb - fixed bad search results when searching for empty string
- simplified result handling and page composition in case that nothing was searched


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5807 6c8d7289-2bf4-0310-a012-ef5d649a1542
2009-04-15 11:22:43 +00:00

27 lines
1006 B
JSON

#[jsonp-start]#
{
"xmlns$yacy": "http://www.yacy.net/",
"xmlns$os": "http://a9.com/-/spec/opensearch/1.1/",
"channels": [{
"title": "YaCy P2P-Search for #[rss_query]#",
"description": "Search for #[rss_query]#",
"link": "#[searchBaseURL]#?query=#[rss_queryenc]#&resource=#[resource]#&contentdom=#[contentdom]#&verify=#[verify]#",
"image": {
"url": "#[rssYacyImageURL]#",
"title": "Search for #[rss_query]#",
"link": "#[searchBaseURL]#?query=#[rss_queryenc]#&resource=#[resource]#&contentdom=#[contentdom]#&verify=#[verify]#"
},
"totalResults": "#[num-results_totalcount]#",
"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]#