From a0c53abbe1f6c193eaaf50c91a24bc6d0193ecd1 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 4 Jun 2009 20:58:47 +0000 Subject: [PATCH] - wait until local results are computed during search, see http://forum.yacy-websuche.de/viewtopic.php?f=5&t=2167&hilit=&p=15521#p15521 - show only x+1 pages in page navigator git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6022 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacysearch.java | 2 +- htroot/yacysearchtrailer.java | 4 ++-- .../de/anomic/plasma/plasmaSearchEvent.java | 22 +++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index 33d9ae8c0..16988ad58 100644 --- a/htroot/yacysearch.java +++ b/htroot/yacysearch.java @@ -463,7 +463,7 @@ public class yacysearch { resnav.append(plasmaSearchQuery.navurl("html", thispage - 1, display, theQuery, originalUrlMask, null)); resnav.append("\"> "); } - final int numberofpages = Math.min(10, Math.max(thispage + 2, totalcount / theQuery.displayResults())); + final int numberofpages = Math.min(10, Math.min(thispage + 2, totalcount / theQuery.displayResults())); for (int i = 0; i < numberofpages; i++) { if (i == thispage) { resnav.append("