Skip to content

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

fix for bad full domain crawl depth adoption (maximum depth is 8, because higher depth will cause that remote crawls do not work)

orbiterea81d97cfc6b
diff --git a/htroot/WatchCrawler_p.java b/htroot/WatchCrawler_p.java
index e2553e75e..b3ec7d1bf 100644
--- a/htroot/WatchCrawler_p.java
+++ b/htroot/WatchCrawler_p.java
@@ -112,7 +112,7 @@ public class WatchCrawler_p {
int newcrawlingdepth = Integer.parseInt(post.get("crawlingDepth", "8"));
env.setConfig("crawlingDepth", Integer.toString(newcrawlingdepth));
- if ((fullDomain) && (newcrawlingdepth < 8)) newcrawlingdepth = 8;
+ if ((fullDomain) && (newcrawlingdepth > 8)) newcrawlingdepth = 8;
boolean crawlingIfOlderCheck = post.get("crawlingIfOlderCheck", "off").equals("on");
int crawlingIfOlderNumber = Integer.parseInt(post.get("crawlingIfOlderNumber", "-1"));