1 # Copyright (C) 2020 all contributors <meta@public-inbox.org>
2 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
4 # Read-only external (detached) index for cross inbox search.
5 # This is a read-only counterpart to PublicInbox::ExtSearchIdx
6 package PublicInbox::ExtSearch;
10 use PublicInbox::Inbox;
12 # for ->reopen, ->mset, ->mset_to_artnums
13 use parent qw(PublicInbox::Search);
16 my (undef, $topdir) = @_;
20 xpfx => "$topdir/ei".PublicInbox::Search::SCHEMA_VERSION
24 # overrides PublicInbox::Search::_xdb
30 # same as per-inbox ->over, for now...
33 $self->{over} //= PublicInbox::Over->new("$self->{xpfx}/over.sqlite3");
38 $self->{git} //= PublicInbox::Git->new("$self->{topdir}/ALL.git");
42 *smsg_eml = \&PublicInbox::Inbox::smsg_eml;