From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6315 166.70.0.0/16 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_LOW,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from out03.mta.xmission.com (out03.mta.xmission.com [166.70.13.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E2DE71F597; Tue, 17 Jul 2018 23:27:34 +0000 (UTC) Received: from in01.mta.xmission.com ([166.70.13.51]) by out03.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1ffZNV-0002xp-5O; Tue, 17 Jul 2018 17:27:33 -0600 Received: from [97.119.167.31] (helo=x220.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1ffZNF-0002ta-Ej; Tue, 17 Jul 2018 17:27:32 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Eric Wong Cc: Date: Tue, 17 Jul 2018 18:27:11 -0500 Message-ID: <87a7qpjve8.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1ffZNF-0002ta-Ej;;;mid=<87a7qpjve8.fsf@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.167.31;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+HSNgYMznPrTFdNqKyZ+Ssel7olMgDhGQ= X-SA-Exim-Connect-IP: 97.119.167.31 X-SA-Exim-Mail-From: ebiederm@xmission.com Subject: [PATCH 0/3] Making the search indexes optional X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) List-Id: Here is the code to make the Xapian search indexes optional. The first patch makes the term position database optional. The second patch makes anything in Xapian optional. Finally the last patch adds a config option. At the end of the day it all looks simple and straight forward so I feel good about the code. At the very least it looks like a good starting point. What this code does not do is make the Xapian code modules optional. As that is more involved, and there is not much reward for that. With a little cleverness in moving around code that is probably possible in a follow change. Eric W. Biederman (3): SearchIdx.pm: Make indexing search positions optional SearchIdx: Add the mechanism for making all Xapian indexing optional SearchIdx: Allow the amount of indexing be configured lib/PublicInbox/Config.pm | 2 +- lib/PublicInbox/SearchIdx.pm | 255 +++++++++++++++++++++++-------------------- 2 files changed, 137 insertions(+), 120 deletions(-)