]> Sergey Matveev's repositories - public-inbox.git/commit
SearchIdx: Add the mechanism for making all Xapian indexing optional
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 18 Jul 2018 16:53:24 +0000 (11:53 -0500)
committerEric Wong <e@80x24.org>
Thu, 19 Jul 2018 03:08:18 +0000 (03:08 +0000)
commit2b18ef9ca28e8c4e70a881dbad832d2f7cb838ee
tree47214a2a9e9891cc38f87f34fd89bb22cd914d3b
parent5d051e1de434490f46bff8bce82010a37a184976
SearchIdx: Add the mechanism for making all Xapian indexing optional

Create a new method add_xapian that holds all of the code to create
Xapian indexes.  The creation of this method simpliy involved
idenitifying the relevant code and moving it from add_message.

A call is added to add_xapian from add_message to keep everything
working as it currently does.  The new call is made conditional upon
index levels of 'full' and 'medium'.  The index levels that index
positions and terms the two things public-inbox uses Xapian to index.

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