From cc1848b7151d308c7eaba246f628438cfc721662 Mon Sep 17 00:00:00 2001 From: Keith Mitchell Date: Fri, 17 Aug 2012 11:49:49 -0700 Subject: [PATCH] Send type_id data to cloudsearch This minor addition will allow us to combine different things into a single domain if we so desire. --- r2/r2/lib/cloudsearch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/r2/r2/lib/cloudsearch.py b/r2/r2/lib/cloudsearch.py index ddc23f74a..116cac7dc 100644 --- a/r2/r2/lib/cloudsearch.py +++ b/r2/r2/lib/cloudsearch.py @@ -257,6 +257,7 @@ class LinkUploader(CloudSearchUploader): "over18": 1 if nsfw else 0, "is_self": 1 if thing.is_self else 0, "author_fullname": account._fullname, + "type_id": thing._type_id } if account._deleted: @@ -327,6 +328,7 @@ class SubredditUploader(CloudSearchUploader): 'link_type': thing.link_type, 'activity': thing._downs, 'subscribers': thing._ups, + 'type_id': thing._type_id } return fields