Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fixed wrong order of result count values

Michael Peter Christen6244b084cd14
diff --git a/htroot/Crawler_p.java b/htroot/Crawler_p.java
index 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 submitted
final boolean fullDomain = "domain".equals(post.get("range", "wide")); // special property in simple crawl start
final 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 url
String[] 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.java
index 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.java
index 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());