From f63bd2626866cf8f54f2e776b5142b1f78e89e39 Mon Sep 17 00:00:00 2001 From: apfelmaennchen Date: Wed, 12 Mar 2008 21:24:53 +0000 Subject: [PATCH] fixed search performance / dynamic display of results git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4557 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/ui/index.html | 20 ++++++++------------ htroot/yacy/ui/result.html | 24 ++++++++++++++---------- htroot/yacy/ui/result.java | 10 +++++++--- 3 files changed, 29 insertions(+), 25 deletions(-) diff --git a/htroot/yacy/ui/index.html b/htroot/yacy/ui/index.html index 3244502ff..c90062bc1 100644 --- a/htroot/yacy/ui/index.html +++ b/htroot/yacy/ui/index.html @@ -20,25 +20,22 @@ @@ -95,8 +92,7 @@ -
+ diff --git a/htroot/yacy/ui/result.html b/htroot/yacy/ui/result.html index 209970bf2..01b085174 100644 --- a/htroot/yacy/ui/result.html +++ b/htroot/yacy/ui/result.html @@ -1,18 +1,22 @@ - - +
#(resultTable)#::#(/resultTable)# #{results}# - + #{/results}# #(resultTable)#::
MediaURL
#(/resultTable)# -/yacy/user/sidebar_history.html?eventID=#[eventID]# + + + + diff --git a/htroot/yacy/ui/result.java b/htroot/yacy/ui/result.java index 79cc2ddc2..241b5ba04 100644 --- a/htroot/yacy/ui/result.java +++ b/htroot/yacy/ui/result.java @@ -123,6 +123,8 @@ public class result { constraint.set(plasmaCondenser.flag_cat_indexof, true); } + int domainzone = post.getInt("zone", yacyURL.TLD_any_zone_filter); + // SEARCH //final boolean indexDistributeGranted = sb.getConfig(plasmaSwitchboard.INDEX_DIST_ALLOW, "true").equals("true"); //final boolean indexReceiveGranted = sb.getConfig("allowReceiveIndex", "true").equals("true"); @@ -182,7 +184,7 @@ public class result { 20, constraint, true, - yacyURL.TLD_any_zone_filter, + domainzone, client); @@ -241,10 +243,12 @@ public class result { for (int i = 0; i < theQuery.displayResults(); i++) { prop.put("results_" + i + "_item", offset + i); prop.put("results_" + i + "_eventID", theQuery.id(false)); + prop.put("results_" + i + "_ID", theQuery.id(false).substring(1,6)); } prop.put("results", theQuery.displayResults()); prop.put("resultTable", (contentdomCode <= 1) ? "0" : "1"); prop.put("eventID", theQuery.id(false)); // for bottomline + prop.put("ID", theQuery.id(false).substring(1,6)); // for bottomline // process result of search if (filtered.size() > 0) { @@ -300,8 +304,8 @@ public class result { prop.putHTML("rss_query", querystring, true); prop.put("rss_queryenc", yacyURL.escape(querystring.replace(' ', '+'))); - sb.localSearchLastAccess = System.currentTimeMillis(); - + sb.localSearchLastAccess = System.currentTimeMillis(); + // return rewrite properties return prop; }