A Boost Function can combine numeric values from the result document to produce a number which is multiplied with the score value from the query result.
To see all available fields, see the <ahref="IndexSchema_p.html">YaCy Solr Schema</a> and look for numeric values (these are names with suffix '_i').
To find out which kind of operations are possible, see the <ahref="http://wiki.apache.org/solr/FunctionQuery"target="_blank">Solr Function Query</a> documentation.
Example: to order by date, use "recip(rord(last_modified),1,1000,1000)", to order by clickdepth, use "div(100,add(clickdepth_i,1))".
Example: to order by date, use "recip(ms(NOW,last_modified),3.16e-11,1,1)", to order by crawldepth, use "div(100,add(crawldepth_i,1))".
@ -907,7 +907,7 @@ public final class SearchEvent {
this.urlhashes.putUnique(iEntry.hash());
rankingtryloop:while(true){
try{
longscore=iEntry.ranking();
longscore=(long)(1000000.0f*iEntry.score());
this.nodeStack.put(newReverseElement<URIMetadataNode>(iEntry,score==0?this.order.cardinal(iEntry):score));// inserts the element and removes the worst (which is smallest)
breakrankingtryloop;
}catch(finalArithmeticExceptione){
@ -1291,8 +1291,8 @@ public final class SearchEvent {