Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
try to guess default crawling mode, if none set
bhoerdzn45cf553bc338
diff --git a/htroot/CrawlStartExpert_p.java b/htroot/CrawlStartExpert_p.javaindex d9f3dd2f4..d7d4da5ff 100644--- a/htroot/CrawlStartExpert_p.java+++ b/htroot/CrawlStartExpert_p.java@@ -99,10 +99,22 @@ public class CrawlStartExpert_p {// sitemap needs "crawlingFile" parameter, checked alreadyprop.put("crawlingMode_file", "1");hasMode = true;+ } else if (crawlingMode.equalsIgnoreCase("url")+ && prop.getBoolean("has_crawlingURL")) {+ prop.put("crawlingMode_url", "1");+ hasMode = true;}- // default to URL mode+ // try to guess modeif (!hasMode) {- prop.put("crawlingMode_url", "1");+ if (prop.getBoolean("has_crawlingURL")) {+ prop.put("crawlingMode_url", "1");+ } else if (prop.getBoolean("has_sitemapURL")) {+ prop.put("crawlingMode_sitemap", "1");+ } else if (prop.getBoolean("has_crawlingFile")) {+ prop.put("crawlingMode_file", "1");+ } else {+ prop.put("crawlingMode_url", "1");+ }}} else {// default to URL