about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-01-05 01:29:10 +0000
committerEric Wong <e@80x24.org>2021-01-09 18:09:54 +0000
commit392533147f50061d93cb9ed82abf98067dde5472 (patch)
treef214c7dd7cc8c6a8121e71b454d1ad3dd005270c /lib/PublicInbox/Search.pm
parent348e7a39627fd40d7cc0ca1be01412da51a71352 (diff)
downloadpublic-inbox-392533147f50061d93cb9ed82abf98067dde5472.tar.gz
We've always temporarily unindexeded messages before reindexing
them again if there's discontiguous history.

This change improves the mechanism we use to prevent NNTP and
IMAP clients from seeing duplicate messages.

Previously, we relied on mapping Message-IDs to NNTP article
numbers to ensure clients would not see the same message twice.
This worked for most messages, but not for for messages with
reused or duplicate Message-IDs.

Instead of relying on Message-IDs as a key, we now rely on the
git blob object ID for exact content matching.  This allows
truly different messages to show up for NNTP|IMAP clients, while
still those clients from seeing the message again.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
0 files changed, 0 insertions, 0 deletions