Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
remove heuristics if index receive is switched off
Michael Christence289eb64f18
diff --git a/htroot/ConfigNetwork_p.java b/htroot/ConfigNetwork_p.javaindex 4e5a7ae6f..5c6086165 100644--- a/htroot/ConfigNetwork_p.java+++ b/htroot/ConfigNetwork_p.java@@ -74,6 +74,12 @@ public class ConfigNetwork_p {// DHT controlboolean indexDistribute = "on".equals(post.get("indexDistribute", ""));boolean indexReceive = "on".equals(post.get("indexReceive", ""));+ if (!indexReceive) {+ // remove heuristics+ sb.setConfig("heuristic.site", false);+ sb.setConfig("heuristic.scroogle", false);+ sb.setConfig("heuristic.blekko", false);+ }final boolean robinsonmode = "robinson".equals(post.get("network", ""));if (robinsonmode) {indexDistribute = false;