]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_query: default to 10000 messages as documented
authorEric Wong <e@80x24.org>
Tue, 2 Feb 2021 11:46:48 +0000 (11:46 +0000)
committerEric Wong <e@80x24.org>
Wed, 3 Feb 2021 07:32:33 +0000 (07:32 +0000)
Otherwise, we were only getting 50 matches without (-t)
thread expansion.

lib/PublicInbox/LeiQuery.pm

index 953d1fc22076f4ac77069d1c0769bf7a2107e34d..dea04c13dda9030435717575a8e271e064f5c59b 100644 (file)
@@ -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