diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-03 17:26:16 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-03 17:26:16 +0000 |
commit | 43fd7e7bda1b8eeb32cf43f6fd89568a938aedf5 (patch) | |
tree | 2a165144b8f01fbc1b41340124af10f7224e5b0f /lib/PublicInbox/SearchMsg.pm | |
parent | d95eee4a10bdb9d30a6aeb93b475250e02109506 (diff) | |
download | public-inbox-43fd7e7bda1b8eeb32cf43f6fd89568a938aedf5.tar.gz |
Aside from the Message-Id ('Q'), these terms do not appear in content and thus have no business contributing to the Xapian document length. Thanks-to Olly Betts for the tip on xapian-discuss <20180228004400.GU12724@survex.com>
Diffstat (limited to 'lib/PublicInbox/SearchMsg.pm')
-rw-r--r-- | lib/PublicInbox/SearchMsg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchMsg.pm b/lib/PublicInbox/SearchMsg.pm index a5565345..93e6fd8b 100644 --- a/lib/PublicInbox/SearchMsg.pm +++ b/lib/PublicInbox/SearchMsg.pm @@ -14,7 +14,7 @@ use PublicInbox::Address; sub new { my ($class, $mime) = @_; my $doc = Search::Xapian::Document->new; - $doc->add_term('T' . 'mail'); + $doc->add_boolean_term('T' . 'mail'); bless { type => 'mail', doc => $doc, mime => $mime }, $class; } |