From 62395935e7bdd8e67776ebb9018f4633e67ff081 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 21 Aug 2015 23:43:12 +0000 Subject: search: s/count/total/ for results This is hopefully less ambiguous, as the word "count" confused me, too. --- lib/PublicInbox/Search.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/Search.pm') diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index f1ff3a4b..580b79fc 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -242,7 +242,7 @@ sub get_thread { my ($self, $mid, $opts) = @_; my $smsg = eval { $self->lookup_message($mid) }; - return { count => 0, msgs => [] } unless $smsg; + return { total => 0, msgs => [] } unless $smsg; my $qp = $self->qp; my $qtid = $qp->parse_query('thread:'.$smsg->thread_id); my $qsub = $qp->parse_query('path:'.mid_compressed($smsg->path)); @@ -267,7 +267,7 @@ sub do_enquire { PublicInbox::SearchMsg->load_doc($_->get_document); } $mset->items; - { count => $mset->get_matches_estimated, msgs => \@msgs } + { total => $mset->get_matches_estimated, msgs => \@msgs } } # read-write -- cgit v1.2.3-24-ge0c7