diff options
author | Eric Wong <e@80x24.org> | 2020-11-23 07:05:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-11-24 05:03:55 +0000 |
commit | 58e764d179131b0fba8590915e2528248be26329 (patch) | |
tree | 18a24739cb8bcc1ec4704772475e8e2dcb225453 /lib/PublicInbox/Search.pm | |
parent | d792a6e8029e4fe56977c5c5d76bae8fe8836cc4 (diff) | |
download | public-inbox-58e764d179131b0fba8590915e2528248be26329.tar.gz |
This will be used to index and search Inbox objects and perhaps individual git repositories/epochs for grokmirror manifest.js.gz generation. There is no sharding planned for this at the moment since inbox count should remain low (~100K to 1M) compared to message count. Folding this into the existing sharded DBs could be possible; but would likely increase query and maintenance costs, as well as development complexity. So we'll use a few more inodes and FDs at runtime, instead.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r-- | lib/PublicInbox/Search.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 71417d5e..05d5a133 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -6,7 +6,7 @@ package PublicInbox::Search; use strict; use parent qw(Exporter); -our @EXPORT_OK = qw(mdocid); +our @EXPORT_OK = qw(mdocid retry_reopen); use List::Util qw(max); # values for searching, changing the numeric value breaks @@ -54,11 +54,11 @@ use constant { use PublicInbox::Smsg; use PublicInbox::Over; -my $QP_FLAGS; +our $QP_FLAGS; our %X = map { $_ => 0 } qw(BoolWeight Database Enquire QueryParser Stem); our $Xap; # 'Search::Xapian' or 'Xapian' -my $NVRP; # '$Xap::'.('NumberValueRangeProcessor' or 'NumberRangeProcessor') -my $ENQ_ASCENDING; +our $NVRP; # '$Xap::'.('NumberValueRangeProcessor' or 'NumberRangeProcessor') +our $ENQ_ASCENDING; sub load_xapian () { return 1 if defined $Xap; |