From 7b7281689150a02c3f42488ac492cb6a841a5034 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Wed, 13 May 2015 04:11:42 -0400 Subject: [PATCH] Comment: define update_search_index() as a no-op. Comments are not indexed, but they were being put into the "search_changes" queue and then skipped when the message was processed. --- r2/r2/models/link.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/r2/r2/models/link.py b/r2/r2/models/link.py index 8b857560c..4f14d2f5a 100644 --- a/r2/r2/models/link.py +++ b/r2/r2/models/link.py @@ -1373,6 +1373,10 @@ class Comment(Thing, Printable): # Run this last Printable.add_props(user, wrapped) + def update_search_index(self, boost_only=False): + # no-op because Comments are not indexed + return + class CommentScoresByLink(tdb_cassandra.View): _use_db = True