Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

enable sku as anchor in html response writer

Michael Peter Christen114f0afc1edf
diff --git a/defaults/solr.collection.schema b/defaults/solr.collection.schema
index 03f282b59..95a27ecbe 100644
--- a/defaults/solr.collection.schema
+++ b/defaults/solr.collection.schema
@@ -18,6 +18,18 @@ sku
## last-modified from http header, date (mandatory field)
last_modified
+## if date expressions can be found in the content, these dates are listed here in order of the appearances"),
+#dates_in_content_sxt
+
+## the number of entries in dates_in_content_sxt
+#dates_in_content_count_i
+
+## if dates_in_content_sxt is filled, this contains the oldest date from the list of available dates"),
+#date_in_content_min_dt
+
+## if dates_in_content_sxt is filled, this contains the youngest date from the list of available dates, that may also be possibly in the future"),
+#date_in_content_max_dt
+
## mime-type of document, string (mandatory field)
content_type
diff --git a/source/net/yacy/cora/federate/solr/responsewriter/HTMLResponseWriter.java b/source/net/yacy/cora/federate/solr/responsewriter/HTMLResponseWriter.java
index b0713653c..5b49a7c02 100644
--- a/source/net/yacy/cora/federate/solr/responsewriter/HTMLResponseWriter.java
+++ b/source/net/yacy/cora/federate/solr/responsewriter/HTMLResponseWriter.java
@@ -168,7 +168,11 @@ public class HTMLResponseWriter implements QueryResponseWriter {
writer.write("<dt>");
writer.write(entry.getKey());
writer.write("</dt><dd>");
- XML.escapeAttributeValue(entry.getValue(), writer);
+ if (entry.getKey().equals("sku")) {
+ writer.write("<a href=\"" + entry.getValue() + "\">" + entry.getValue() + "</a>");
+ } else {
+ XML.escapeAttributeValue(entry.getValue(), writer);
+ }
writer.write("</dd>\n");
}
writer.write("</dl>\n");