Network.log.logInfo("SEARCH (solr), returned 0 out of "+docList.getNumFound()+" documents from "+(target==null?"shard":("peer "+target.hash+":"+target.getName()))+" query = "+solrQuery.toString());
}else{// create containers
Network.log.logInfo("SEARCH (solr), returned "+docList.size()+" out of "+docList.getNumFound()+" documents from "+(target==null?"shard":("peer "+target.hash+":"+target.getName())));
publicfinalStringhost;// this is the client host that starts the query, not a site operator
publicfinalStringsitehash;// this is a domain hash, 6 bytes long or null
publicfinalSet<String>siteexcludes;// set of domain hashes that are excluded if not included by sitehash
protectedfinalSet<String>siteexcludes;// set of domain hashes that are excluded if not included by sitehash
publicfinalStringauthorhash;
publicfinalModifiermodifier;
publicSeedremotepeer;
publicfinallongstarttime,maxtime,timeout;// the time when the query started, how long it should take and the time when the timeout is reached (milliseconds)
publicfinallongstarttime;// the time when the query started, how long it should take and the time when the timeout is reached (milliseconds)
protectedfinallongmaxtime;
protectedfinallongtimeout;
// values that are set after a search:
publicintresultcount;// number of found results
publicinttransmitcount;// number of results that had been shown to the user
publiclongsearchtime,urlretrievaltime,snippetcomputationtime;// time to perform the search, to get all the urls, and to compute the snippets
publicbooleanspecialRights;// is true if the user has a special authorization and my use more database-extensive options
privatebooleanspecialRights;// is true if the user has a special authorization and my use more database-extensive options
publicfinalStringuserAgent;
publicbooleanfilterfailurls;
publicdoublelat,lon,radius;
publicStringsolrQueryString=null;
protectedbooleanfilterfailurls;
protecteddoublelat,lon,radius;
publicQueryParams(
finalStringqueryString,
@ -303,7 +293,7 @@ public final class QueryParams {
doublekmNormal=100.d;// 100 =ca 40000.d / 360.d == 111.11 - if lat/lon is multiplied with this, rounded and diveded by this, the location is normalized to a 1km grid
privatedoublekmNormal=100.d;// 100 =ca 40000.d / 360.d == 111.11 - if lat/lon is multiplied with this, rounded and diveded by this, the location is normalized to a 1km grid
publicSegmentgetSegment(){
returnthis.indexSegment;
@ -397,7 +387,7 @@ public final class QueryParams {
@ -176,11 +176,11 @@ public final class RWIProcess extends Thread
this.expectedRemoteReferences.addAndGet(x);
}
publicbooleanexpectMoreRemoteReferences(){
protectedbooleanexpectMoreRemoteReferences(){
returnthis.expectedRemoteReferences.get()>0;
}
publiclongwaitTimeRecommendation(){
protectedlongwaitTimeRecommendation(){
return
this.maxExpectedRemoteReferences.get()==0?0:
Math.min(maxWaitPerResult,
@ -528,7 +528,7 @@ public final class RWIProcess extends Thread
this.urlhashes.putUnique(iEntry.urlhash());
rankingtryloop:while(true){
try{
this.stack.put(newReverseElement<WordReferenceVars>(iEntry,this.order.cardinal(iEntry)));// inserts the element and removes the worst (which is smallest)
this.rwiStack.put(newReverseElement<WordReferenceVars>(iEntry,this.order.cardinal(iEntry)));// inserts the element and removes the worst (which is smallest)
breakrankingtryloop;
}catch(finalArithmeticExceptione){
// this may happen if the concurrent normalizer changes values during cardinal computation
@ -566,7 +566,7 @@ public final class RWIProcess extends Thread
@ -906,20 +907,17 @@ public final class RWIProcess extends Thread
returntrue;
}
publicint[]flagCount(){
returnthis.flagcount;
}
// "results from a total number of <remote_resourceSize + local_resourceSize> known (<local_resourceSize> local, <remote_resourceSize> remote), <remote_indexCount> links from <remote_peerCount> other YaCy peers."
publicintfilteredCount(){
// the number of index entries that are considered as result set