From d1052f03ea85d4afe19106584ed6ebd675dcead0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 17 Jun 2021 22:00:47 +0000 Subject: lei/store: cull redundant docids based on blob OID 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). --- lib/PublicInbox/SearchIdx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/SearchIdx.pm') 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); -- cgit v1.2.3-24-ge0c7