diff options
author | Eric Wong <e@80x24.org> | 2020-12-25 10:21:15 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-26 06:22:56 +0000 |
commit | 451ffd3068017ac1ca8bb0b454a65a7f2a3bf407 (patch) | |
tree | 3cebaa15b8beffa792710b041fe15a79323216df /script | |
parent | 9a17bc230973405b0656bf05fb76902d46627ffa (diff) | |
download | public-inbox-451ffd3068017ac1ca8bb0b454a65a7f2a3bf407.tar.gz |
extindex users will likely want to use indexlevel=basic for per-inbox indices, however extindex itself doesn't support basic index level (yet?). Let's ensure we don't trip up extindex users who specify "-L basic" on the -index command-line.
Diffstat (limited to 'script')
-rwxr-xr-x | script/public-inbox-index | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script/public-inbox-index b/script/public-inbox-index index c68f9224..0fdfddc0 100755 --- a/script/public-inbox-index +++ b/script/public-inbox-index @@ -84,8 +84,10 @@ for my $ei_name (@$update_extindex) { } else { die "extindex `$ei_name' not configured or found\n"; } + my $o = { %$opt }; + delete $o->{indexlevel} if ($o->{indexlevel}//'') eq 'basic'; $eidx_seen{$topdir} //= - push(@eidx, PublicInbox::ExtSearchIdx->new($topdir, $opt)); + push(@eidx, PublicInbox::ExtSearchIdx->new($topdir, $o)); } my $mods = {}; my @eidx_unconfigured; |