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;
11 # for ->reopen, ->mset, ->mset_to_artnums
12 use parent qw(PublicInbox::Search);
15 my (undef, $topdir) = @_;
19 xpfx => "$topdir/ei".PublicInbox::Search::SCHEMA_VERSION
23 # overrides PublicInbox::Search::_xdb
29 # same as per-inbox ->over, for now...
32 $self->{over} //= PublicInbox::Over->new("$self->{xpfx}/over.sqlite3");
37 $self->{git} //= PublicInbox::Git->new("$self->{topdir}/ALL.git");