diff --git a/htroot/yacyinteractive.html b/htroot/yacyinteractive.html index 5e4b66f5f..f30fd34c2 100644 --- a/htroot/yacyinteractive.html +++ b/htroot/yacyinteractive.html @@ -56,7 +56,7 @@ To see a list of all APIs, please visit the + #[promoteSearchPageGreeting]# @@ -65,6 +65,9 @@ To see a list of all APIs, please visit the + #(allowrealtime)# + :: + #(/allowrealtime)# diff --git a/htroot/yacyinteractive.java b/htroot/yacyinteractive.java index 8eb797b45..647916f1d 100644 --- a/htroot/yacyinteractive.java +++ b/htroot/yacyinteractive.java @@ -54,6 +54,7 @@ public class yacyinteractive { prop.putHTML("maximumRecords", maximumRecords); prop.putHTML("querys", query.replaceAll(" ", "+")); prop.put("serverlist", query.length() == 0 ? 1 : 0); + prop.put("allowrealtime", sb.indexSegments.URLCount() < 100000 ? 1 : 0); return prop; } } \ No newline at end of file