Skip to content

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

removed localized number formatting from num-results_totalcount response (this is only used in xml and json where localized format is not valid)

reger36c9875b6eb5
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java
index 81d61d423..943a1ea42 100644
--- a/htroot/yacysearch.java
+++ b/htroot/yacysearch.java
@@ -949,7 +949,7 @@ public class yacysearch {
% theSearch.getQuery().itemsPerPage : startRecord + theSearch.getQuery().itemsPerPage,
true));
prop.put("num-results_itemsPerPage", itemsPerPage);
- prop.put("num-results_totalcount", Formatter.number(indexcount, true));
+ prop.put("num-results_totalcount", indexcount);
prop.put("num-results_globalresults", global && (indexReceiveGranted || clustersearch)
? "1"
: "0");
@@ -1121,12 +1121,12 @@ public class yacysearch {
prop.putXML("rss_query", originalquerystring);
prop.putXML("rss_queryenc", originalquerystring.replace(' ', '+'));
- sb.localSearchLastAccess = System.currentTimeMillis();
+ sb.localSearchLastAccess = System.currentTimeMillis();
// hostname and port (assume locahost if nothing helps)
final InetAddress hostIP = Domains.myPublicLocalIP();
prop.put("myhost", hostIP != null ? hostIP.getHostAddress() : Domains.LOCALHOST);
- prop.put("myport", serverCore.getPortNr(sb.getConfig("port", "8090")));
+ prop.put("myport", serverCore.getPortNr(sb.getConfig("port", "8090")));
// return rewrite properties
return prop;
diff --git a/htroot/yacysearchtrailer.java b/htroot/yacysearchtrailer.java
index 91d09bd67..e21326d44 100644
--- a/htroot/yacysearchtrailer.java
+++ b/htroot/yacysearchtrailer.java
@@ -359,7 +359,7 @@ public class yacysearchtrailer {
}
final int indexcount = theSearch.getRankingResult().getLocalIndexCount() - theSearch.getRankingResult().getMissCount() - theSearch.getRankingResult().getSortOutCount() + theSearch.getRankingResult().getRemoteIndexCount();
- prop.put("num-results_totalcount", Formatter.number(indexcount, true));
+ prop.put("num-results_totalcount", indexcount);
EventTracker.update(EventTracker.EClass.SEARCH, new ProfilingGraph.EventSearch(theQuery.id(true), SearchEvent.Type.FINALIZATION, "bottomline", 0, 0), false);