about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-27 19:38:28 +0000
committerEric Wong <e@80x24.org>2020-12-28 23:19:25 +0000
commitd0e74a3591d9e701af6fea30baacf2ddb51475d5 (patch)
tree6baa2fa15edc5f4d27a3e12299704bbcac7439d5 /lib/PublicInbox/Search.pm
parent54b250c611c752538666f2bf6d361d3762a21781 (diff)
downloadpublic-inbox-d0e74a3591d9e701af6fea30baacf2ddb51475d5.tar.gz
SearchView will set it to `undef', others will set the 'mset'
option (for the ->mset method :P) to 2 which causes {relevance}
to be ignored.

And the 'mset' option is poorly named now that the message
is named ->mset...
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index 05c679c9..ffd19a1f 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -287,7 +287,6 @@ sub mset {
         $opts ||= {};
         my $qp = $self->{qp} //= qparse_new($self);
         my $query = $qp->parse_query($query_string, $self->{qp_flags});
-        $opts->{relevance} = 1 unless exists $opts->{relevance};
         _do_enquire($self, $query, $opts);
 }