From 81a9c1b476987d845b340ab9013d26cf4487cb9a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Sep 2015 01:57:11 +0000 Subject: search: disable Message-ID compression in Xapian We'll continue to compress long Message-IDs in URLs (which we know about), but we will store entire Message-IDs in the Xapian database to facilitate ease-of-lookups in external databases. --- lib/PublicInbox/Search.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/Search.pm') diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 8b32ef38..eb49f724 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -26,14 +26,15 @@ use constant { # 6 - preserve References: order in document data # 7 - remove references and inreplyto terms # 8 - remove redundant/unneeded document data - SCHEMA_VERSION => 8, + # 9 - disable Message-ID compression + SCHEMA_VERSION => 9, QP_FLAGS => FLAG_PHRASE|FLAG_BOOLEAN|FLAG_LOVEHATE|FLAG_WILDCARD, }; # setup prefixes my %bool_pfx_internal = ( type => 'T', # "mail" or "ghost" - mid => 'Q', # uniQue id (Message-ID or mid_compress) + mid => 'Q', # uniQue id (Message-ID) ); my %bool_pfx_external = ( @@ -171,7 +172,6 @@ sub date_range_processor { sub lookup_message { my ($self, $mid) = @_; $mid = mid_clean($mid); - $mid = mid_compress($mid); my $doc_id = $self->find_unique_doc_id('mid', $mid); my $smsg; -- cgit v1.2.3-24-ge0c7