about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdx.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-01 08:55:18 +0000
committerEric Wong <e@80x24.org>2015-09-01 08:55:53 +0000
commit7bedf475e4b043870b638922a4d6ab1bd469a50b (patch)
treeb40d0fb5bf9705c7548639bc07553c25f2a7fac4 /lib/PublicInbox/SearchIdx.pm
parent7c9ece10460f53e37f457e85d6d71eaa0c3c86ee (diff)
downloadpublic-inbox-7bedf475e4b043870b638922a4d6ab1bd469a50b.tar.gz
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.
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r--lib/PublicInbox/SearchIdx.pm2
1 files changed, 0 insertions, 2 deletions
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);