]> Sergey Matveev's repositories - public-inbox.git/commit
SearchIdx: Allow the amount of indexing be configured
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 18 Jul 2018 16:53:25 +0000 (11:53 -0500)
committerEric Wong <e@80x24.org>
Thu, 19 Jul 2018 03:08:56 +0000 (03:08 +0000)
commitcd196679300c54f840e7569dba97005c449f99ab
tree769d595700e410bc44e4088be619cbfb3db65efc
parent2b18ef9ca28e8c4e70a881dbad832d2f7cb838ee
SearchIdx: Allow the amount of indexing be configured

This adds a new inbox configuration option 'indexlevel' that can take
the values 'full', 'medium', and 'basic'.

When set to 'full' everything is indexed including the positions
of all terms.

When set to 'medium' everything except the positions of terms is
indexed.

When set to 'basic' terms and positions are not indexed.  Just the
Overview database for NNTP is created.  Which is still quite good and
allows searching for messages by Message-ID.  But there are no indexes to support
searching inside the email messages themselves.

Update the reindex tests to exercise the full medium and basic code paths

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
lib/PublicInbox/Config.pm
lib/PublicInbox/SearchIdx.pm
t/v1reindex.t
t/v2reindex.t