]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchidx: subject is not a term
authorEric Wong <e@80x24.org>
Thu, 1 Oct 2015 23:53:25 +0000 (23:53 +0000)
committerEric Wong <e@80x24.org>
Thu, 1 Oct 2015 23:53:49 +0000 (23:53 +0000)
Sometimes subjects are excessively long and hit Xapian's 245-byte
term limit.  We can still perform subject-only searches with
a probabilistic prefix.

lib/PublicInbox/SearchIdx.pm

index 4b43369ff3aa9f68eb46cf8750cc0907212fecf7..f98ba3e1b668d3177a8375ffc93680824a179204 100644 (file)
@@ -80,8 +80,6 @@ sub add_message {
                my $subj = $smsg->subject;
 
                if ($subj ne '') {
-                       $doc->add_term(xpfx('subject') . $subj);
-
                        my $path = $self->subject_path($subj);
                        $doc->add_term(xpfx('path') . mid_compress($path));
                }