diff options
author | Eric Wong <e@80x24.org> | 2023-11-13 13:15:45 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-11-13 21:55:05 +0000 |
commit | 94910cdb43ae400cfc541446aa9b6164f4dce631 (patch) | |
tree | 88556c7641ab693fe617b127732f8de45e7b51ed /lib/PublicInbox | |
parent | d6beefee49df29165fcb720e645e6466b3155cc1 (diff) | |
download | public-inbox-94910cdb43ae400cfc541446aa9b6164f4dce631.tar.gz |
The C++ version does, so the Perl/XS version should, too; even if we intentionally avoid using it right now.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/XapHelper.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/XapHelper.pm b/lib/PublicInbox/XapHelper.pm index 1ee918e3..4157600f 100644 --- a/lib/PublicInbox/XapHelper.pm +++ b/lib/PublicInbox/XapHelper.pm @@ -78,7 +78,7 @@ sub cmd_dump_ibx { my ($req, $ibx_id, $qry_str) = @_; $qry_str // return warn('usage: dump_ibx [OPTIONS] IBX_ID QRY_STR'); $req->{A} or return warn('dump_ibx requires -A PREFIX'); - my $max = $req->{srch}->{xdb}->get_doccount; + my $max = $req->{'m'} // $req->{srch}->{xdb}->get_doccount; my $opt = { relevance => -1, limit => $max, offset => $req->{o} // 0 }; $opt->{eidx_key} = $req->{O} if defined $req->{O}; my $mset = $req->{srch}->mset($qry_str, $opt); |