]> Sergey Matveev's repositories - public-inbox.git/commitdiff
search: remove pointless {relevance} setting
authorEric Wong <e@80x24.org>
Sun, 27 Dec 2020 19:38:28 +0000 (19:38 +0000)
committerEric Wong <e@80x24.org>
Mon, 28 Dec 2020 23:19:25 +0000 (23:19 +0000)
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...

lib/PublicInbox/Search.pm

index 05c679c9a6b3f4386c55d1e52411bc6a985f4002..ffd19a1f238e690bd4da78590ea6698bcbeed7c2 100644 (file)
@@ -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);
 }