From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 8206C1F81A; Mon, 17 Aug 2015 08:00:42 +0000 (UTC) Date: Mon, 17 Aug 2015 08:00:42 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] search: bump schema version for '%' compression change Message-ID: <20150817080042.GA31804@dcvr.yhbt.net> References: <1439797931-27484-1-git-send-email-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1439797931-27484-1-git-send-email-e@80x24.org> List-Id: commit 0fea7793b22efd2596983283947ee43687e0cfac ("mid: compress Message-IDs with '%' in them") requires re-indexing of repositories with '%' in Message-IDs :< --- lib/PublicInbox/Search.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 862ed6d..2608a58 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -16,7 +16,8 @@ use constant { # 0 - initial # 1 - subject_path is lower-cased # 2 - subject_path is mid_compressed in the index, only - SCHEMA_VERSION => 2, + # 3 - message-ID is compressed if it includes '%' (hack!) + SCHEMA_VERSION => 3, LANG => 'english', QP_FLAGS => FLAG_PHRASE|FLAG_BOOLEAN|FLAG_LOVEHATE|FLAG_WILDCARD, }; -- EW