X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=lib%2FPublicInbox%2FSearch.pm;h=546884a9a1fc4867f80a97f95494f4330470f70b;hp=b739faf1a50c7eae1ae781078a0621fa71e648c4;hb=1561be76574111a53c9d7c284fd03f68d6a5208b;hpb=73e3a6ed6e95adc67cfa10079f11c28fe3f78517 diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index b739faf1..546884a9 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -282,15 +282,10 @@ sub reopen { sub query { my ($self, $query_string, $opts) = @_; $opts ||= {}; - if ($query_string eq '' && !$opts->{mset}) { - $self->{over_ro}->recent($opts); - } else { - my $qp = $self->{qp} //= qparse_new($self); - my $qp_flags = $self->{qp_flags}; - my $query = $qp->parse_query($query_string, $qp_flags); - $opts->{relevance} = 1 unless exists $opts->{relevance}; - _do_enquire($self, $query, $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); } sub retry_reopen {