|
|
|
@ -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;
|
|
|
|
|