From 7bedf475e4b043870b638922a4d6ab1bd469a50b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 1 Sep 2015 08:55:18 +0000 Subject: search: reduce redundant doc data Redundant document data increases our database size, pull the smsg->mid off the unique term, the smsg->ts off the value, and only generate the formatted display date off smsg->ts. --- lib/PublicInbox/SearchIdx.pm | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/PublicInbox/SearchIdx.pm') diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index dec33334..32e07142 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -81,8 +81,6 @@ sub add_message { $doc->add_term(xpfx('path') . mid_compress($path)); } - my $from = $smsg->from_name; - my $date = $smsg->date; my $ts = Search::Xapian::sortable_serialise($smsg->ts); $doc->add_value(PublicInbox::Search::TS, $ts); -- cgit v1.2.3-24-ge0c7