From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 0A9161F47C for ; Sat, 10 Aug 2024 09:00:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1723280413; bh=GSWnzAyWEON+mvdJYAodg35TcWkWSVcj7szvuzTc3SM=; h=From:To:Subject:Date:From; b=Y7wD3CGd4xGCkKZkHNMGlvvomMZhQhyOVkeA3X0s7pSOjezr/mIZ8p46zDqt+dUrc jRpigR7wcK+1bBygx6uk4igZ6OOVqI5EQW2tlg0DmiPoe25tKaK+57LCTMlz8EDU9Y Ie1K0/pavVitaGp+c7RobnyoMemUIpu8xrDPK0DY= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 00/11] indexheader + altid enhancements Date: Sat, 10 Aug 2024 09:00:01 +0000 Message-ID: <20240810090012.23269-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: The indexheader feature allows arbitrary headers to be indexed. This can be done with both per-inbox Xapian indices and extindex spanning multiple inboxes. Furthermore, the old altid feature now works with -extindex even if it's configured per-inbox. Eric Wong (11): search: support per-inbox indexheader directive indexheader: deduplicate common values search: help: avoid ':' in user prefixes search: move QueryParser mappings to xh_args www_text: show indexheader contents in help www: don't memoize ->user_help contents extindex: avoid branch in ->index_eml t/extsearch: use autodie to detect chmod failures t/extsearch: use xsys_e to detect errors extindex: support extindex.*.indexheader extindex: support per-inbox indexheader+altid Documentation/common.perl | 22 +---- Documentation/public-inbox-config.pod | 62 ++++++++++++ MANIFEST | 2 + lib/PublicInbox/AltId.pm | 60 ++++++------ lib/PublicInbox/Config.pm | 5 +- lib/PublicInbox/ExtSearchIdx.pm | 24 ++++- lib/PublicInbox/IndexHeader.pm | 79 ++++++++++++++++ lib/PublicInbox/Isearch.pm | 16 +++- lib/PublicInbox/Search.pm | 131 ++++++++++++++------------ lib/PublicInbox/SearchIdx.pm | 51 ++++++---- lib/PublicInbox/SearchIdxShard.pm | 3 +- lib/PublicInbox/WwwText.pm | 29 +----- t/extsearch.t | 127 +++++++++++++++++++++++-- t/watch_indexheader.t | 92 ++++++++++++++++++ t/www_altid.t | 3 + 15 files changed, 537 insertions(+), 169 deletions(-) create mode 100644 lib/PublicInbox/IndexHeader.pm create mode 100644 t/watch_indexheader.t