diff options
author | Eric Wong <e@80x24.org> | 2017-06-14 00:14:46 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-06-14 00:15:44 +0000 |
commit | 7eeadcb62729b0efbcb53cd9b7b181897c92cf9a (patch) | |
tree | b0201fd1678f0b53b8ff26e665d8a6f78390534f /lib/PublicInbox/SearchMsg.pm | |
parent | e772b371ea15d5903720a00c7c24b535e781b4bf (diff) | |
download | public-inbox-7eeadcb62729b0efbcb53cd9b7b181897c92cf9a.tar.gz |
This simplifies the code a bit and reduces the translation overhead for looking directly at data from tools shipped with Xapian. While we're at it, fix thread-all.t :)
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 b8eee665..a19d45db 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(PublicInbox::Search::xpfx('type') . 'mail'); + $doc->add_term('T' . 'mail'); bless { type => 'mail', doc => $doc, mime => $mime }, $class; } |