]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
*index: don't try to index boolean terms >245 bytes long
authorEric Wong <e@80x24.org>
Thu, 7 Aug 2025 00:49:31 +0000 (00:49 +0000)
committerEric Wong <e@80x24.org>
Sat, 9 Aug 2025 07:39:18 +0000 (07:39 +0000)
commitfa9c112306844defa83042808a72c68be9813916
tree325923cbfe87a5f92f14688d2dc988e5aa6e1f29
parent0deb72e133565278617f00bd27a9e94af1258324
*index: don't try to index boolean terms >245 bytes long

Xapian's flint, chert, and glass backends only support a maximum
term length of 245 bytes including the upper-case term prefix.
Thus we can't index things like insanely long Message-IDs in
References: or overly long pathnames or newsgroup names.

The work-in-progress honey backend still doesn't support
updates, yet, (only created from an existing glass DB), and I
doubt the limit will increase since excessive term lengths are
usually a mistake of mangled whitespace or a broken/spammy
client somewhere.
Documentation/public-inbox-config.pod
lib/PublicInbox/CodeSearchIdx.pm
lib/PublicInbox/MiscIdx.pm
lib/PublicInbox/SearchIdx.pm
t/search.t