From 6ecc180299236919775714afb240e8f35879b5b6 Mon Sep 17 00:00:00 2001 From: reger Date: Tue, 12 Apr 2016 03:55:43 +0200 Subject: [PATCH] fix rwi doubledom return best (highest) ranking --- source/net/yacy/search/query/SearchEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/search/query/SearchEvent.java b/source/net/yacy/search/query/SearchEvent.java index cc4c417c4..6585a5060 100644 --- a/source/net/yacy/search/query/SearchEvent.java +++ b/source/net/yacy/search/query/SearchEvent.java @@ -1099,7 +1099,7 @@ public final class SearchEvent { } o = m.peek(); if (o == null) continue doubleloop; - if (o.getWeight() < bestEntry.getWeight()) bestEntry = o; + if (o.getWeight() > bestEntry.getWeight()) bestEntry = o; } if (bestEntry == null) { //Log.logWarning("SearchEvent", "bestEntry == null (1)");