Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for non-authorized view of IndexBrowser: show only the number of non-failure documents
Michael Peter Christenf901e7d3cf5e
diff --git a/htroot/HostBrowser.java b/htroot/HostBrowser.javaindex bb63d90a3..d95565634 100644--- a/htroot/HostBrowser.java+++ b/htroot/HostBrowser.java@@ -204,7 +204,7 @@ public class HostBrowser {int maxcount = authorized ? 2 * 3 * 2 * 5 * 7 * 2 * 3 : 360; // which makes nice matrixes for 2, 3, 4, 5, 6, 7, 8, 9 rows/colums// collect hosts from index- ReversibleScoreMap<String> hostscore = fulltext.getDefaultConnector().getFacets(AbstractSolrConnector.CATCHALL_QUERY, maxcount, CollectionSchema.host_s.getSolrFieldName()).get(CollectionSchema.host_s.getSolrFieldName());+ ReversibleScoreMap<String> hostscore = fulltext.getDefaultConnector().getFacets(CollectionSchema.httpstatus_i.getSolrFieldName() + ":200", maxcount, CollectionSchema.host_s.getSolrFieldName()).get(CollectionSchema.host_s.getSolrFieldName());if (hostscore == null) hostscore = new ClusteredScoreMap<String>(true);// collect hosts from crawler@@ -227,7 +227,7 @@ public class HostBrowser {int exclcount = exclscore.get(host);int failcount = failscore.get(host);int errors = exclcount + failcount;- prop.put("hosts_list_" + c + "_count", hostscore.get(host) - errors);+ prop.put("hosts_list_" + c + "_count", hostscore.get(host));prop.put("hosts_list_" + c + "_crawler", inCrawler ? 1 : 0);if (inCrawler) prop.put("hosts_list_" + c + "_crawler_pending", crawler.get(host)[0]);prop.put("hosts_list_" + c + "_errors", errors > 0 ? 1 : 0);