]> Sergey Matveev's repositories - public-inbox.git/commitdiff
search: increase limit for thread search
authorEric Wong <e@80x24.org>
Fri, 17 Jun 2016 01:12:26 +0000 (01:12 +0000)
committerEric Wong <e@80x24.org>
Fri, 17 Jun 2016 01:14:09 +0000 (01:14 +0000)
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.

lib/PublicInbox/Search.pm

index 0f7815fb610124ece7bbbc8867e93199e085490e..d9fbc36c49648204b91808ecdb6cdb7c54b42266 100644 (file)
@@ -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);
 }