From 38288155244171da67d24569fe7b546cf52069c5 Mon Sep 17 00:00:00 2001 From: Keith Mitchell Date: Fri, 17 Aug 2012 12:14:26 -0700 Subject: [PATCH] Try out a hot sort --- r2/r2/lib/cloudsearch.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/r2/r2/lib/cloudsearch.py b/r2/r2/lib/cloudsearch.py index ff0210376..cf44e79cd 100644 --- a/r2/r2/lib/cloudsearch.py +++ b/r2/r2/lib/cloudsearch.py @@ -721,12 +721,14 @@ class CloudSearchQuery(object): class LinkSearchQuery(CloudSearchQuery): search_api = g.CLOUDSEARCH_SEARCH_API sorts = {'relevance': '-relevance', + 'hot': '-hot2', 'top': '-top', 'new': '-timestamp', } sorts_menu_mapping = {'relevance': 1, - 'new': 2, - 'top': 3, + 'hot': 2, + 'new': 3, + 'top': 4, } lucene_parser = l2cs.make_parser(int_fields=['timestamp'],