diff --git a/htroot/solr/select.java b/htroot/solr/select.java index 72a06cc5c..662df9a5f 100644 --- a/htroot/solr/select.java +++ b/htroot/solr/select.java @@ -23,7 +23,6 @@ import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.Writer; import java.util.HashMap; -import java.util.LinkedHashSet; import java.util.Map; import javax.servlet.ServletException; diff --git a/source/net/yacy/document/Document.java b/source/net/yacy/document/Document.java index 6d5e76fbe..9e630f5d3 100644 --- a/source/net/yacy/document/Document.java +++ b/source/net/yacy/document/Document.java @@ -868,7 +868,9 @@ dc_rights if (parser instanceof ContentScraper) { final ContentScraper html = (ContentScraper) parser; String refresh = html.getRefreshPath(); - if (refresh != null && refresh.length() > 0)try {result.put(new DigestURI(refresh), "refresh");} catch (MalformedURLException e) {} + if (refresh != null && refresh.length() > 0) try {result.put(new DigestURI(refresh), "refresh");} catch (MalformedURLException e) {} + DigestURI canonical = html.getCanonical(); + if (canonical != null) result.put(canonical, "canonical"); } } return result; diff --git a/source/net/yacy/search/schema/CollectionConfiguration.java b/source/net/yacy/search/schema/CollectionConfiguration.java index 238cc4bca..6f8de52b7 100644 --- a/source/net/yacy/search/schema/CollectionConfiguration.java +++ b/source/net/yacy/search/schema/CollectionConfiguration.java @@ -490,9 +490,9 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri Subgraph subgraph = new Subgraph(inboundLinks.size(), outboundLinks.size()); Map alllinks = document.getAnchors(); + Map images = new HashMap(); int c = 0; final Object parser = document.getParserObject(); - Map images = new HashMap(); if (parser instanceof ContentScraper) { final ContentScraper html = (ContentScraper) parser; images = html.getImages();