diff options
author | Eric Wong <e@80x24.org> | 2015-09-03 01:57:11 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-03 02:04:40 +0000 |
commit | 81a9c1b476987d845b340ab9013d26cf4487cb9a (patch) | |
tree | 65a8c150f97ca35dbc987711ed14d8070027aaf3 /lib/PublicInbox/Search.pm | |
parent | fd138a0197450d30677441afb014584f34a661da (diff) | |
download | public-inbox-81a9c1b476987d845b340ab9013d26cf4487cb9a.tar.gz |
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.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r-- | lib/PublicInbox/Search.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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; |