diff options
author | Eric Wong <e@80x24.org> | 2022-08-03 20:03:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-08-04 07:00:58 +0000 |
commit | 213e03e1f9624faa4a3a9813f1eac5035c1eb62a (patch) | |
tree | 070e38ebf61c4d1f62779f9e451cffef47442835 /lib/PublicInbox/MiscIdx.pm | |
parent | 63dce18973d63837efd89225085fe144a8954bdf (diff) | |
download | public-inbox-213e03e1f9624faa4a3a9813f1eac5035c1eb62a.tar.gz |
This will be used to speed up NNTP group listings and IMAP startup with thousands of inboxes.
Diffstat (limited to 'lib/PublicInbox/MiscIdx.pm')
-rw-r--r-- | lib/PublicInbox/MiscIdx.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/PublicInbox/MiscIdx.pm b/lib/PublicInbox/MiscIdx.pm index 5faf5c66..76b33b16 100644 --- a/lib/PublicInbox/MiscIdx.pm +++ b/lib/PublicInbox/MiscIdx.pm @@ -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) |