Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- apply directDocByURL to NOLOAD Queue - choose pushing to NOLOAD as default for site crawl
Michael Peter Christen19efbf1b0f5b
diff --git a/htroot/CrawlStartSite_p.html b/htroot/CrawlStartSite_p.htmlindex 39eaeee41..cb522780e 100644--- a/htroot/CrawlStartSite_p.html+++ b/htroot/CrawlStartSite_p.html@@ -95,7 +95,7 @@<dt><label>Dynamic URLs</label></dt><dd><input type="checkbox" name="crawlingQ" id="crawlingQ" #(crawlingQChecked)#::checked="checked"#(/crawlingQChecked)# /> allow <a href="http://en.wikipedia.org/wiki/Query_string">query-strings</a> (urls with a '?' in the path)-+ <input type="hidden" name="directDocByURL" id="directDocByURL" value="on" /><input type="hidden" name="storeHTCache" id="storeHTCache" value="on" /><input type="hidden" name="cachePolicy" id="cachePolicy" value="iffresh" /><input type="hidden" name="indexText" id="indexText" value="on" />diff --git a/htroot/Crawler_p.java b/htroot/Crawler_p.javaindex 5a3966c57..bcad9fd42 100644--- a/htroot/Crawler_p.java+++ b/htroot/Crawler_p.java@@ -184,7 +184,7 @@ public class Crawler_p {env.setConfig("crawlingDepth", Integer.toString(newcrawlingdepth));if ((crawlOrder) && (newcrawlingdepth > 8)) newcrawlingdepth = 8;- final boolean directDocByURL = "on".equals(post.get("directDocByURL", "off"));+ final boolean directDocByURL = "on".equals(post.get("directDocByURL", "on")); // catch also all linked media documents without loading themenv.setConfig("crawlingDirectDocByURL", directDocByURL);// recrawldiff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.javaindex 7acda2996..050790c6a 100644--- a/source/net/yacy/search/Switchboard.java+++ b/source/net/yacy/search/Switchboard.java@@ -2355,10 +2355,12 @@ public final class Switchboard extends serverSwitchfinal Map<MultiProtocolURI, String> hl = Document.getHyperlinks(documents);// add all media links also to the crawl stack. They will be re-sorted to the NOLOAD queue and indexed afterwards as pure links- hl.putAll(Document.getImagelinks(documents));- hl.putAll(Document.getApplinks(documents));- hl.putAll(Document.getVideolinks(documents));- hl.putAll(Document.getAudiolinks(documents));+ if (response.profile().directDocByURL()) {+ hl.putAll(Document.getImagelinks(documents));+ hl.putAll(Document.getApplinks(documents));+ hl.putAll(Document.getVideolinks(documents));+ hl.putAll(Document.getAudiolinks(documents));+ }// insert those hyperlinks to the crawlerMultiProtocolURI nextUrl;