From a9ba3d10482daea78739f3da6c8d7739ac8af3fc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 2 Feb 2021 11:46:48 +0000 Subject: lei_query: default to 10000 messages as documented Otherwise, we were only getting 50 matches without (-t) thread expansion. --- lib/PublicInbox/LeiQuery.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox/LeiQuery.pm') diff --git a/lib/PublicInbox/LeiQuery.pm b/lib/PublicInbox/LeiQuery.pm index 953d1fc2..dea04c13 100644 --- a/lib/PublicInbox/LeiQuery.pm +++ b/lib/PublicInbox/LeiQuery.pm @@ -51,6 +51,7 @@ sub lei_q { my %mset_opt = map { $_ => $opt->{$_} } qw(thread limit offset); $mset_opt{asc} = $opt->{'reverse'} ? 1 : 0; + $mset_opt{limit} //= 10000; $mset_opt{qstr} = join(' ', map {; # Consider spaces in argv to be for phrase search in Xapian. # In other words, the users should need only care about -- cgit v1.2.3-24-ge0c7