about summary refs log tree commit homepage
path: root/lib/PublicInbox/Config.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-07-21 14:05:49 +0000
committerEric Wong <e@80x24.org>2021-07-22 02:28:43 +0000
commit5666a78ea0a34d4b8292ee335e12af1452f7fe83 (patch)
treecd785ba0cfbfc63e28a571176f4239b1f8c6b114 /lib/PublicInbox/Config.pm
parent03344d346ba5b3640206b380725f91e241780ad7 (diff)
downloadpublic-inbox-5666a78ea0a34d4b8292ee335e12af1452f7fe83.tar.gz
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).
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r--lib/PublicInbox/Config.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm
index 8e46328d..7aa1f6c8 100644
--- a/lib/PublicInbox/Config.pm
+++ b/lib/PublicInbox/Config.pm
@@ -429,7 +429,7 @@ sub _fill_ibx {
                 $ibx->{$k} = $v if defined $v;
         }
         for my $k (qw(filter inboxdir newsgroup replyto httpbackendmax feedmax
-                        indexlevel indexsequentialshard)) {
+                        indexlevel indexsequentialshard boost)) {
                 my $v = get_1($self, $pfx, $k) // next;
                 $ibx->{$k} = $v;
         }