diff options
author | Eric Wong <e@80x24.org> | 2016-06-17 01:12:26 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-17 01:14:09 +0000 |
commit | 3c9bb0e66ae923465c68245c336dbc1db76a4cd2 (patch) | |
tree | 5b783b8e05db84a0e7fe3f859496994cc1b47726 /lib | |
parent | aad496f4336e6a7b60312b0eef1a88b9527322bb (diff) | |
download | public-inbox-3c9bb0e66ae923465c68245c336dbc1db76a4cd2.tar.gz |
Some threads are easily over 100 messages, so the 50 limit is not enough. It is likely that 1000 messages is not enough, either, and we will need to tune our threading to handle more messages and supply options for configurability.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Search.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 0f7815fb..d9fbc36c 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -109,6 +109,8 @@ sub get_thread { my $path = id_compress($smsg->path); my $qsub = Search::Xapian::Query->new(xpfx('path').$path); my $query = Search::Xapian::Query->new(OP_OR, $qtid, $qsub); + $opts ||= {}; + $opts->{limit} ||= 1000; $self->do_enquire($query, $opts); } |