mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 23:08:22 -05:00
Search: Sort by number of comments
This commit is contained in:
@@ -735,11 +735,13 @@ class LinkSearchQuery(CloudSearchQuery):
|
||||
'hot': '-hot2',
|
||||
'top': '-top',
|
||||
'new': '-timestamp',
|
||||
'comments': '-num_comments',
|
||||
}
|
||||
sorts_menu_mapping = {'relevance': 1,
|
||||
'hot': 2,
|
||||
'new': 3,
|
||||
'top': 4,
|
||||
'comments': 5,
|
||||
}
|
||||
|
||||
lucene_parser = l2cs.make_parser(int_fields=['timestamp'],
|
||||
|
||||
Reference in New Issue
Block a user