Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix: searchoption hint for heuristic
regerab98f6959222
diff --git a/htroot/index.html b/htroot/index.htmlindex 044969d9f..79a508a8c 100644--- a/htroot/index.html+++ b/htroot/index.html@@ -176,7 +176,7 @@<dd><dl style="width:500px"><dt>/heuristic</dt>- <dd>add search results from #[count]# external opensearch systems</dd>+ <dd>add search results from external opensearch systems</dd></dl></dd>#(/heuristic)#diff --git a/htroot/index.java b/htroot/index.javaindex 49bf3e8ce..953cfc5a9 100644--- a/htroot/index.java+++ b/htroot/index.java@@ -67,12 +67,8 @@ public class index {if (!sb.getConfigBool("search.options", true)) {searchoptions = 0;} else { // show heuristic hint on search option screen- int osdcnt = 0; // (only if some are active and heuristic is not ON by config)- try {- osdcnt = sb.tables.size("opensearchsys");- } catch (IOException ex) { }- prop.put("searchoptions_heuristic", !sb.getConfigBool(SwitchboardConstants.HEURISTIC_OPENSEARCH, false) && osdcnt > 0);- prop.put("searchoptions_heuristic_count", osdcnt);+ // (only if heuristic is ON by config)+ prop.put("searchoptions_heuristic", sb.getConfigBool(SwitchboardConstants.HEURISTIC_OPENSEARCH, false));}final String former = (post == null) ? "" : post.get("former", "");final int count = Math.min(100, (post == null) ? 10 : post.getInt("count", 10));