Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
less search overhead when first result set is smaller than requested
Michael Peter Christen4ca1b76627f1
diff --git a/source/net/yacy/peers/RemoteSearch.java b/source/net/yacy/peers/RemoteSearch.javaindex 09b9e793e..14597c2a9 100644--- a/source/net/yacy/peers/RemoteSearch.java+++ b/source/net/yacy/peers/RemoteSearch.java@@ -263,9 +263,10 @@ public class RemoteSearch extends Thread {int tmpoffset = 0;int tmpcount = 10;while (tmpoffset + tmpcount <= count && tmpcount > 0) {+ int urls = 0;try {event.rankingProcess.oneFeederStarted();- int urls = Protocol.solrQuery(+ urls = Protocol.solrQuery(event,tmpoffset,tmpcount,@@ -286,6 +287,7 @@ public class RemoteSearch extends Thread {} finally {event.rankingProcess.oneFeederTerminated();}+ if (urls < tmpcount) break; // there won't be moretmpoffset += tmpcount;tmpcount = count - tmpoffset; // increase the tmpcount to get to all results in less time}