]> Sergey Matveev's repositories - public-inbox.git/commit
extindex: fix delete (`d') handling
authorEric Wong <e@80x24.org>
Sat, 28 Nov 2020 08:45:21 +0000 (08:45 +0000)
committerEric Wong <e@80x24.org>
Sun, 29 Nov 2020 02:25:39 +0000 (02:25 +0000)
commit50ac81092ba1034f3055ddabb3d7cc7853edfa41
tree8662fcc2883fc4a145c0618e2ed197e943289c2c
parent44de182766037948d62bc2a8ba924de2264dd5fc
extindex: fix delete (`d') handling

We need to completely remove a message from over.sqlite3 and
Xapian when no references remain, otherwise users will still see
the removed messages in NNTP overviews and WWW search
results/summaries.

References to messages are now solely handled by the `xref3'
table of over.sqlite3.  We can also trust `xref3' when deciding
whether to remove only the "O$eidx_key" and "G$lid" terms from a
document in Xapian or to remove the entire Xapian document.
lib/PublicInbox/ExtSearchIdx.pm
lib/PublicInbox/OverIdx.pm
t/extsearch.t
t/over.t