]> Sergey Matveev's repositories - public-inbox.git/commit
extsearch: support publicinbox.*.boost parameter
authorEric Wong <e@80x24.org>
Wed, 21 Jul 2021 14:05:49 +0000 (14:05 +0000)
committerEric Wong <e@80x24.org>
Thu, 22 Jul 2021 02:28:43 +0000 (02:28 +0000)
commit5666a78ea0a34d4b8292ee335e12af1452f7fe83
treecd785ba0cfbfc63e28a571176f4239b1f8c6b114
parent03344d346ba5b3640206b380725f91e241780ad7
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
lib/PublicInbox/Config.pm
lib/PublicInbox/ExtSearchIdx.pm
t/extsearch.t