Skip to content

Commit

Permalink
Fix for issue NAS-2529
Browse files Browse the repository at this point in the history
  • Loading branch information
svcarlsen committed May 19, 2016
1 parent e508c2e commit d707842
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class SeedUriDomainnameQueueAssignmentPolicy extends HostnameQueueAssignm
public String getClassKey(CrawlURI cauri) {
String candidate;

boolean ignoreSourceSeed = cauri != null && cauri.getCanonicalString().startsWith("dns");
boolean ignoreSourceSeed = cauri != null; // don't igoreSourceSeed if it is a dns url
try {
// Since getClassKey has no contract, we must encapsulate it from errors.
candidate = super.getClassKey(cauri);
Expand Down Expand Up @@ -125,6 +125,8 @@ private String getCandidateFromSource(CrawlURI cauri) {
log.warn("Hostname could not be extracted from sourceCandidate: " + sourceCandidate);
return null;
}
return DomainUtils.domainNameFromHostname(hostname);
String candidateKey = DomainUtils.domainNameFromHostname(hostname);
//log.info("CandidateKey: " + candidateKey);
return candidateKey;
}
}

0 comments on commit d707842

Please sign in to comment.