diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.java
index 431ce4030..0baf4ed34 100644
--- a/htroot/yacysearchitem.java
+++ b/htroot/yacysearchitem.java
@@ -153,7 +153,7 @@ public class yacysearchitem {
prop.putJSON("content_title-json", result.title());
prop.putHTML("content_showPictures_link", resultUrlstring);
//prop.putHTML("content_link", resultUrlstring);
-
+
// START interaction
if (sb.getConfigBool("proxyURL.useforresults", false) && sb.getConfigBool("proxyURL", false)) {
String modifyURL = resultUrlstring;
@@ -199,6 +199,19 @@ public class yacysearchitem {
prop.put("content_favicon", 1);
}
prop.putHTML("content_favicon_faviconUrl", processFaviconURL(ImageViewer.hasFullViewingRights(header, sb), faviconURL));
+
+ if (result.limage() == 0) {
+ if (faviconURL == null) {
+ prop.put("content_image", 0);
+ } else {
+ prop.put("content_image", 1);
+ prop.putXML("content_image_url", faviconURL.toNormalform(true));
+ }
+ } else {
+ prop.put("content_image", 1);
+ prop.putXML("content_image_url", result.imageURL());
+ }
+
prop.put("content_urlhash", urlhash);
prop.put("content_ranking", Float.toString(result.score()));
Date[] events = result.events();
diff --git a/htroot/yacysearchitem.json b/htroot/yacysearchitem.json
index 59f04c10f..822af6f93 100644
--- a/htroot/yacysearchitem.json
+++ b/htroot/yacysearchitem.json
@@ -5,6 +5,7 @@
"code": "#[code]#",
"description": "#[description-json]#",
"pubDate": "#[date822]#",
+ #(image)#::"image": "#[url]#",#(/image)#
#(showEvent)#::"eventDate": "#[date822]#",#(/showEvent)#
"size": "#[size]#",
"sizename": "#[sizename]#",
diff --git a/htroot/yacysearchitem.xml b/htroot/yacysearchitem.xml
index c8dfb7e87..30989e0df 100644
--- a/htroot/yacysearchitem.xml
+++ b/htroot/yacysearchitem.xml
@@ -3,6 +3,7 @@
#[link]#
#[description-xml]#
#[date822]#
+#(image)#::#(/image)#
#(showEvent)#::#[date822]##[date822]##(/showEvent)#
diff --git a/source/net/yacy/cora/federate/solr/responsewriter/OpensearchResponseWriter.java b/source/net/yacy/cora/federate/solr/responsewriter/OpensearchResponseWriter.java
index 1027f48f6..d7bdc0f1c 100644
--- a/source/net/yacy/cora/federate/solr/responsewriter/OpensearchResponseWriter.java
+++ b/source/net/yacy/cora/federate/solr/responsewriter/OpensearchResponseWriter.java
@@ -40,6 +40,8 @@ import net.yacy.cora.lod.vocabulary.DublinCore;
import net.yacy.cora.lod.vocabulary.Geo;
import net.yacy.cora.lod.vocabulary.YaCyMetadata;
import net.yacy.cora.protocol.HeaderFramework;
+import net.yacy.crawler.retrieval.Response;
+import net.yacy.search.schema.CollectionConfiguration;
import net.yacy.search.schema.CollectionSchema;
import org.apache.lucene.document.Document;
@@ -159,6 +161,7 @@ public class OpensearchResponseWriter implements QueryResponseWriter {
SolrIndexSearcher searcher = request.getSearcher();
DocIterator iterator = response.iterator();
String urlhash = null;
+ MultiProtocolURL url = null;
for (int i = 0; i < responseCount; i++) {
openTag(writer, "item");
int id = iterator.nextDoc();
@@ -168,6 +171,8 @@ public class OpensearchResponseWriter implements QueryResponseWriter {
List texts = new ArrayList();
List descriptions = new ArrayList();
String title = "";
+ List