]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/MiscIdx.pm
treewide: replace /^I: / prefix with /^# /
[public-inbox.git] / lib / PublicInbox / MiscIdx.pm
index 5faf5c66ed1ebc850e99ded3bf320c899fc6e5f8..19200b92c910c8e22de43acccdbf1bd9e89fa0e6 100644 (file)
@@ -72,7 +72,7 @@ sub remove_eidx_key {
        }
        for my $docid (@docids) {
                $xdb->delete_document($docid);
-               warn "I: remove inbox docid #$docid ($eidx_key)\n";
+               warn "# remove inbox docid #$docid ($eidx_key)\n";
        }
 }
 
@@ -108,12 +108,16 @@ EOF
        $doc->add_boolean_term('Q'.$eidx_key); # uniQue id
        $doc->add_boolean_term('T'.'inbox'); # Type
 
+       # force reread from disk, {description} could be loaded from {misc}
+       delete @$ibx{qw(-art_min -art_max description)};
        if (defined($ibx->{newsgroup}) && $ibx->nntp_usable) {
                $doc->add_boolean_term('T'.'newsgroup'); # additional Type
+               my $n = $ibx->art_min;
+               add_val($doc, $PublicInbox::MiscSearch::ART_MIN, $n) if $n;
+               $n = $ibx->art_max;
+               add_val($doc, $PublicInbox::MiscSearch::ART_MAX, $n) if $n;
        }
 
-       # force reread from disk, {description} could be loaded from {misc}
-       delete $ibx->{description};
        my $desc = $ibx->description;
 
        # description = S/Subject (or title)