Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Adjusted crawl depth control for FTP crawl start URLs.
lucciomanc1401d821e21
diff --git a/source/net/yacy/crawler/CrawlStacker.java b/source/net/yacy/crawler/CrawlStacker.javaindex 080e5e1c0..8ae52a48f 100644--- a/source/net/yacy/crawler/CrawlStacker.java+++ b/source/net/yacy/crawler/CrawlStacker.java@@ -267,6 +267,7 @@ public final class CrawlStacker {final String pw = userInfo == null || p == -1 ? "anomic" : userInfo.substring(p + 1);final String host = ftpURL.getHost();final int port = ftpURL.getPort();+ final int pathParts = ftpURL.getPaths().length;new Thread() {@Overridepublic void run() {@@ -289,6 +290,10 @@ public final class CrawlStacker {CrawlStacker.this.indexSegment.fulltext().remove(urlhash);cq.noticeURL.removeByURLHash(urlhash);}++ /* Each entry is a children resource of the starting ftp URL :+ * take into account the sub folder depth in the crawl depth control */+ int nextDepth = Math.max(0, url.getPaths().length - pathParts);// put entry on crawl stackenqueueEntry(new Request(@@ -298,7 +303,7 @@ public final class CrawlStacker {MultiProtocolURL.unescape(entry.name),entry.date,profile.handle(),- 0,+ nextDepth,timezoneOffset));}} catch (final IOException e1) {