about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdx.pm
diff options
authorEric Wong <e@80x24.org>2021-06-17 22:00:47 +0000
committerEric Wong <e@80x24.org>2021-06-17 22:34:59 +0000
commitd1052f03ea85d4afe19106584ed6ebd675dcead0 (patch)
treeec221991d18d62a9bd3da507945d57d44e99ccd6 /lib/PublicInbox/SearchIdx.pm
parent09f1fabd1b3097426734b358d7231c11ab4b8d6e (diff)
I'm not sure how this happened (only once for me in March), but
it should not happen...  In any case, we'll operate on the
lowest numbered docid and cull redundant index entries when
lei/store is open for read-write.

This also fixes the normal lei/store removal path to clean up
the xref3 table (since it's not done automatically for
public-facing -eidx due to the multi-list nature of it).
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index f066cc92..f553eda6 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -572,7 +572,7 @@ sub apply_vmd_mod ($$) {
         my $updated = 0;
         my @x = @VMD_MAP;
         while (my ($field, $pfx) = splice(@x, 0, 2)) {
-                # field: "label" or "kw"
+                # field: "L" or "kw"
                 for my $val (@{$vmd_mod->{"-$field"} // []}) {
                         eval {
                                 $doc->remove_term($pfx . $val);