From: Eric Wong Date: Sun, 27 Dec 2020 19:38:28 +0000 (+0000) Subject: search: remove pointless {relevance} setting X-Git-Tag: v1.7.0~1479 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=d0e74a3591d9e701af6fea30baacf2ddb51475d5;p=public-inbox.git search: remove pointless {relevance} setting 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... --- 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); }