X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FSearchIdx.pm;h=06d1a9f580dfe35b436d39ae8327e211f9f110c1;hb=c44b4b959772cf11b530055c9f67651518ea4927;hp=569efbb0debcdf1b7c9939b6838eda1d8819e017;hpb=d2eb1ae16e4d3aaa5bece96f17b2fa4561d5b18e;p=public-inbox.git diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index 569efbb0..06d1a9f5 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -468,11 +468,13 @@ sub remove_eidx_info { my ($self, $docid, $oid, $eidx_key, $eml) = @_; begin_txn_lazy($self); my $doc = _get_doc($self, $docid, $oid) or return; - $doc->remove_term('O'.$eidx_key); + eval { $doc->remove_term('O'.$eidx_key) }; + warn "W: ->remove_term O$eidx_key: $@\n" if $@; for my $l ($eml->header_raw('List-Id')) { $l =~ /<([^>]+)>/ or next; my $lid = lc $1; - $doc->remove_term('G' . $lid); + eval { $doc->remove_term('G' . $lid) }; + warn "W: ->remove_term G$lid: $@\n" if $@; # nb: we don't remove the XL probabilistic terms # since terms may overlap if cross-posted.