X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FLeiQuery.pm;h=9a6fa7181c6abd83fde876ca55784313151077ec;hb=5beb4a5f6585acdb036a10b2be4b45b6e7613ed6;hp=0346498fa4f50851f225a84fbe357233d2d1b3c5;hpb=c1ea28b62d19bb7c77a275497899382df344eb52;p=public-inbox.git diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index 0346498f..9a6fa718 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -81,7 +81,7 @@ sub lei_q { $self->{l2m}->{jobs} = ($mj // $nproc) if $self->{l2m}; PublicInbox::LeiOverview->new($self) or return; - my %mset_opt = map { $_ => $opt->{$_} } qw(thread limit offset); + my %mset_opt = map { $_ => $opt->{$_} } qw(threads limit offset); $mset_opt{asc} = $opt->{'reverse'} ? 1 : 0; $mset_opt{limit} //= 10000; if (defined(my $sort = $opt->{'sort'})) { @@ -96,7 +96,7 @@ sub lei_q { } } # descending docid order - $mset_opt{relevance} //= -2 if $opt->{thread}; + $mset_opt{relevance} //= -2 if $opt->{threads}; $self->{mset_opt} = \%mset_opt; if ($opt->{stdin}) {