From 5666a78ea0a34d4b8292ee335e12af1452f7fe83 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 21 Jul 2021 14:05:49 +0000 Subject: extsearch: support publicinbox.*.boost parameter This behaves identically the lei external "boost" parameter in prioritizing raw messages for extindex. Relying exclusively on the config file order doesn't work well for mirrors since it's impossible to guarantee config file ordering via grokmirror hooks. Config file ordering remains the default if boost is unconfigured, or in case of ties. Note: I chose the name "boost" rather than "priority" or "rank" since I always get confused by whether higher or lower numbers take precedence when it comes to kernel scheduling. "weight" is also a part of Xapian API terminology, which we currently do not expose to configuration (but may in the future). --- Documentation/public-inbox-config.pod | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Documentation/public-inbox-config.pod') diff --git a/Documentation/public-inbox-config.pod b/Documentation/public-inbox-config.pod index 05d9ca62..5b86ef6c 100644 --- a/Documentation/public-inbox-config.pod +++ b/Documentation/public-inbox-config.pod @@ -124,6 +124,14 @@ allow for searching for phrases using quoted text. Default: C +=item publicinbox..boost + +Control indexing order for L, with ties +broken by config file order. This only affects indexing and does +not affect messages which are already indexed. + +Default: C<0> + =item publicinbox..indexSequentialShard See L -- cgit v1.2.3-24-ge0c7