Merged master to dist_macOS branch.

This commit is contained in:
luccioman 2016-09-03 15:22:57 +02:00
commit 39ea28adfd

View File

@ -1439,10 +1439,19 @@ public final class SearchEvent {
long r = 0; long r = 0;
// for media search: prefer pages with many links // for media search: prefer pages with many links
switch (this.query.contentdom) {
case IMAGE:
r += rentry.limage() << this.query.ranking.coeff_cathasimage; r += rentry.limage() << this.query.ranking.coeff_cathasimage;
break;
case AUDIO:
r += rentry.laudio() << this.query.ranking.coeff_cathasaudio; r += rentry.laudio() << this.query.ranking.coeff_cathasaudio;
break;
case VIDEO:
r += rentry.lvideo() << this.query.ranking.coeff_cathasvideo; r += rentry.lvideo() << this.query.ranking.coeff_cathasvideo;
break;
case APP:
r += rentry.lapp() << this.query.ranking.coeff_cathasapp; r += rentry.lapp() << this.query.ranking.coeff_cathasapp;
}
// apply citation count // apply citation count
//System.out.println("POSTRANKING CITATION: references = " + rentry.referencesCount() + ", inbound = " + rentry.llocal() + ", outbound = " + rentry.lother()); //System.out.println("POSTRANKING CITATION: references = " + rentry.referencesCount() + ", inbound = " + rentry.llocal() + ", outbound = " + rentry.lother());