From bb369c98de453c9bbb611c80eb6226b48ee0e48b Mon Sep 17 00:00:00 2001 From: orbiter Date: Mon, 31 Oct 2005 17:17:48 +0000 Subject: [PATCH] fixed search result ordering by date git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1011 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaSearchResult.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/de/anomic/plasma/plasmaSearchResult.java b/source/de/anomic/plasma/plasmaSearchResult.java index deb7474cf..014c3360b 100644 --- a/source/de/anomic/plasma/plasmaSearchResult.java +++ b/source/de/anomic/plasma/plasmaSearchResult.java @@ -149,6 +149,8 @@ public final class plasmaSearchResult { // apply pre-calculated order attributes ranking = 0; + if (query.order[0].equals(plasmaSearchQuery.ORDER_DATE)) ranking += 10 * indexEntry.getVirtualAge(); + //if (query.order[0].equals(plasmaSearchQuery.ORDER_QUALITY)) ranking += indexEntry.getQuality(); // apply 'common-sense' heuristic using references for (int j = 0; j < urlcomps.length; j++) if (commonSense.contains(urlcomps[j])) ranking++;