]> Sergey Matveev's repositories - public-inbox.git/commitdiff
search: bump schema version for '%' compression change
authorEric Wong <e@80x24.org>
Mon, 17 Aug 2015 07:56:39 +0000 (07:56 +0000)
committerEric Wong <e@80x24.org>
Mon, 17 Aug 2015 07:56:39 +0000 (07:56 +0000)
commit 0fea7793b22efd2596983283947ee43687e0cfac
("mid: compress Message-IDs with '%' in them")
requires re-indexing of repositories with '%' in Message-IDs :<

lib/PublicInbox/Search.pm

index 862ed6ddd41b9f5c282bc19efac0400fbcea4111..2608a58f4f4860388f7cd1cece9cbb99e60a91a0 100644 (file)
@@ -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,
 };