yacy_search_server/htroot/yacysearchitem.json
Michael Peter Christen 7f395ef937 added image link in search results
This should be a help to make a preview of search results.
The image is computed from the list of embedded images, it is
always the first image in that list.
In rss-type results the image is presented like
<media:content medium="image" url="https://abc.xyz/logo.png"/>
as defined in
http://www.rssboard.org/media-rss#media-content
2017-08-14 20:12:09 +02:00

34 lines
999 B
JSON

#(content)#::#(nl)#:: ,#(/nl)#
{
"title": "#[title-json]#",
"link": "#[link]#",
"code": "#[code]#",
"description": "#[description-json]#",
"pubDate": "#[date822]#",
#(image)#::"image": "#[url]#",#(/image)#
#(showEvent)#::"eventDate": "#[date822]#",#(/showEvent)#
"size": "#[size]#",
"sizename": "#[sizename]#",
"guid": "#[urlhash]#",
#(favicon)#::"faviconUrl": "#[faviconUrl]#",#(/favicon)#
"host": "#[host]#",
"path": "#[path]#",
"file": "#[file]#",
"urlhash": "#[urlhash]#",
"ranking": "#[ranking]#"
}::#(item)#::#(nl)#:: ,#(/nl)#
{
"title": "#[name]#",
"icon": "/ViewImage.png?maxwidth=96&amp;maxheight=96&amp;code=#[code]#",
"image": "#[href]#",
"cache": "#[hrefCache]#",
"url": "#[source]#",
"urlhash": "#[urlhash]#",
"host": "#[sourcedom]#",
"width": "#[width]#",
"height": "#[height]#"
}#(/item)#::
::
::
::
#(/content)#