Skip to content

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

fix for linkstructure computation: now also detecting dead links

Michael Peter Christen7f5733638b32
diff --git a/htroot/api/linkstructure.java b/htroot/api/linkstructure.java
index 692388b19..146382a07 100644
--- a/htroot/api/linkstructure.java
+++ b/htroot/api/linkstructure.java
@@ -130,7 +130,7 @@ public class linkstructure {
}
// we use the errorDocs to mark all edges with endpoint to error documents
for (Map.Entry<String, HyperlinkEdge> edge: edges.entrySet()) {
- if (errorDocs.containsKey(edge.getValue().target)) edge.getValue().type = HyperlinkEdge.Type.Dead;
+ if (errorDocs.containsKey(edge.getValue().target.toNormalform(true))) edge.getValue().type = HyperlinkEdge.Type.Dead;
}
// finally just write out the edge array