Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
limitation of remote search result number
orbiterf04add6cb48d
diff --git a/htroot/yacy/search.java b/htroot/yacy/search.javaindex 0fd94c292..0bec68676 100644--- a/htroot/yacy/search.java+++ b/htroot/yacy/search.java@@ -94,8 +94,8 @@ public final class search {String abstracts = post.get("abstracts", ""); // a string of word hashes for abstracts that shall be generated, or 'auto' (for maxcount-word), or '' (for none)// final String fwdep = post.get("fwdep", ""); // forward depth. if "0" then peer may NOT ask another peer for more results// final String fwden = post.get("fwden", ""); // forward deny, a list of seed hashes. They may NOT be target of forward hopping- final long duetime= post.getLong("duetime", 3000);- final int count = post.getInt("count", 10); // maximum number of wanted results+ final long duetime= Math.min(60000, post.getLong("duetime", 3000));+ final int count = Math.min(100, post.getInt("count", 10)); // maximum number of wanted resultsfinal int maxdist= post.getInt("maxdist", Integer.MAX_VALUE);final String prefer = post.get("prefer", "");final String contentdom = post.get("contentdom", "text");