From 49b8d46ecf589fc93e3f76284bb8b0122731154e Mon Sep 17 00:00:00 2001 From: Edward Lee Date: Tue, 15 Feb 2011 10:27:30 -0800 Subject: [PATCH] Closes #152: Adaptive results aren't completely using adaptive ordering Make sure to add by adaptive use count instead of frecency ordering of adapted results. --- homeDash/scripts/crunch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeDash/scripts/crunch.js b/homeDash/scripts/crunch.js index 587478c..37d508e 100644 --- a/homeDash/scripts/crunch.js +++ b/homeDash/scripts/crunch.js @@ -123,7 +123,7 @@ function processAdaptive() { "JOIN moz_places " + "ON id = place_id " + "WHERE input NOT NULL " + - "ORDER BY frecency DESC"; + "ORDER BY ROUND(use_count) DESC, frecency DESC"; let cols = ["input", "url", "title"]; let stmt = Utils.createStatement(Svc.History.DBConnection, query);