From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id BBE2C1FFAF for ; Tue, 2 Feb 2021 11:47:02 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 02/16] lei_query: default to 10000 messages as documented Date: Tue, 2 Feb 2021 11:46:48 +0000 Message-Id: <20210202114702.29886-3-e@80x24.org> In-Reply-To: <20210202114702.29886-1-e@80x24.org> References: <20210202114702.29886-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Otherwise, we were only getting 50 matches without (-t) thread expansion. --- lib/PublicInbox/LeiQuery.pm | 1 + 1 file changed, 1 insertion(+) 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