Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixed wrong order of result count values
Michael Peter Christen6244b084cd14
diff --git a/htroot/Crawler_p.java b/htroot/Crawler_p.javaindex 3e9648618..47212540e 100644--- a/htroot/Crawler_p.java+++ b/htroot/Crawler_p.java@@ -151,7 +151,7 @@ public class Crawler_p {if (newcrawlingMustMatch.length() < 2) newcrawlingMustMatch = CrawlProfile.MATCH_ALL_STRING; // avoid that all urls are filtered out if bad value was submittedfinal boolean fullDomain = "domain".equals(post.get("range", "wide")); // special property in simple crawl startfinal boolean subPath = "subpath".equals(post.get("range", "wide")); // special property in simple crawl start- final boolean deleteold = (fullDomain || subPath || !CrawlProfile.MATCH_ALL_STRING.equals(newcrawlingMustMatch)) && post.getBoolean("deleteold");+ final boolean deleteold = (fullDomain || subPath || !CrawlProfile.MATCH_ALL_STRING.equals(newcrawlingMustMatch)) && post.getBoolean("deleteold");String crawlingStart0 = post.get("crawlingURL","").trim(); // the crawljob start urlString[] rootURLs0 = crawlingStart0.indexOf('\n') > 0 || crawlingStart0.indexOf('\r') > 0 ? crawlingStart0.split("[\\r\\n]+") : crawlingStart0.split(Pattern.quote("|"));diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.javaindex e7433aa77..ef698d340 100644--- a/htroot/yacysearchitem.java+++ b/htroot/yacysearchitem.java@@ -97,8 +97,8 @@ public class yacysearchitem {prop.put("totalcount", Formatter.number(theSearch.query.getResultCount(), true));prop.put("localResourceSize", Formatter.number(theSearch.query.local_rwi_available.get() + theSearch.query.local_solr_available.get(), true));prop.put("localMissCount", Formatter.number(theSearch.query.misses.size(), true));- prop.put("remoteResourceSize", Formatter.number(theSearch.query.remote_available.get(), true));- prop.put("remoteIndexCount", Formatter.number(theSearch.query.remote_stored.get(), true));+ prop.put("remoteResourceSize", Formatter.number(theSearch.query.remote_stored.get(), true));+ prop.put("remoteIndexCount", Formatter.number(theSearch.query.remote_available.get(), true));prop.put("remotePeerCount", Formatter.number(theSearch.query.remote_peerCount.get(), true));prop.put("navurlBase", QueryParams.navurlBase("html", theSearch.query, null, theSearch.query.urlMask.toString()).toString());final String target_special_pattern = sb.getConfig(SwitchboardConstants.SEARCH_TARGET_SPECIAL_PATTERN, "");diff --git a/htroot/yacysearchlatestinfo.java b/htroot/yacysearchlatestinfo.javaindex 4b963b495..116d49941 100644--- a/htroot/yacysearchlatestinfo.java+++ b/htroot/yacysearchlatestinfo.java@@ -39,8 +39,8 @@ public class yacysearchlatestinfo {prop.put("totalcount", Formatter.number(theSearch.query.getResultCount(), true));prop.put("localResourceSize", Formatter.number(theSearch.query.local_rwi_available.get() + theSearch.query.local_solr_available.get(), true));prop.put("localMissCount", Formatter.number(theSearch.query.misses.size(), true));- prop.put("remoteResourceSize", Formatter.number(theSearch.query.remote_available.get(), true));- prop.put("remoteIndexCount", Formatter.number(theSearch.query.remote_stored.get(), true));+ prop.put("remoteResourceSize", Formatter.number(theSearch.query.remote_stored.get(), true));+ prop.put("remoteIndexCount", Formatter.number(theSearch.query.remote_available.get(), true));prop.put("remotePeerCount", Formatter.number(theSearch.query.remote_peerCount.get(), true));prop.putJSON("navurlBase", QueryParams.navurlBase("html", theSearch.query, null, theSearch.query.urlMask.toString()).toString());