introduction of a new remote search load control: the remote search has taken 10 results per peer with a time-out of 3 seconds so far. The attributes of number of results per peer and time-out time can now be configured.
This has two aspects: the user who searches may want to increase these values to get more results and more load on the remote side and the user of the server which is accessed for this search may want to restrict the load. Both sides can now be configured. The server-site maximum load parameters are defined by a network definition and the client-side search request load can be defined by each user individually but when the remote search is done the requested service is limited to the network definition.
You can find now in the network definition file:
network.unit.remotesearch.maxcount and network.unit.remotesearch.maxtime
and in the yacy.conf file:
remotesearch.maxcount and remotesearch.maxtime
There is currently no web interface to define the client-side remote search attributes, please set them manually
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7548 6c8d7289-2bf4-0310-a012-ef5d649a1542
finalStringabstracts=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
finalintcount=Math.min(100,post.getInt("count",10));// maximum number of wanted results
finalintcount=Math.min((int)sb.getConfigLong(SwitchboardConstants.REMOTESEARCH_MAXCOUNT_DEFAULT,100),post.getInt("count",10));// maximum number of wanted results
finallongmaxtime=Math.min((int)sb.getConfigLong(SwitchboardConstants.REMOTESEARCH_MAXTIME_DEFAULT,3000),post.getLong("time",3000));// maximum number of wanted results
yacyChannel.channels(yacyChannel.REMOTESEARCH).addMessage(newRSSMessage("Remote Search Request from "+((remoteSeed==null)?"unknown":remoteSeed.getName()),QueryParams.anonymizedQueryHashes(theQuery.queryHashes),""));