]> Sergey Matveev's repositories - public-inbox.git/commit
extindex: fix boost with partial runs
authorEric Wong <e@80x24.org>
Wed, 4 Aug 2021 10:02:48 +0000 (10:02 +0000)
committerEric Wong <e@80x24.org>
Wed, 4 Aug 2021 23:47:15 +0000 (23:47 +0000)
commit2e1a7378395af3c1db61f26b106befbc42876622
tree3e7be6e288599f6f6a5de0f8bade7aa872a96567
parent00fdf28595247e14fe82dbc0b61f778a0f4b41f7
extindex: fix boost with partial runs

Boost relies on knowledge of all inboxes in a given config file
to work properly.  So while we support indexing a subset of
inboxes, we must still account for boost in inboxes we're not
indexing.  So split internal inbox groups into "known" and
"active", where previously we only cared for inboxes which were
being actively indexed.

Furthermore, boost checks need to be applied when a
message arrives in different inboxes across multiple
invocations.

Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Link: https://public-inbox.org/meta/20210802204058.vscbxs5q7xyolyu2@nitro.local/
lib/PublicInbox/ExtSearchIdx.pm
script/public-inbox-extindex
t/extsearch.t