diff options
author | Eric Wong <e@80x24.org> | 2020-09-02 11:04:14 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-09-03 20:11:03 +0000 |
commit | 1561be76574111a53c9d7c284fd03f68d6a5208b (patch) | |
tree | 4f119111cd2ff4c864e10309cad616d58651e9f9 /lib/PublicInbox/Search.pm | |
parent | 73e3a6ed6e95adc67cfa10079f11c28fe3f78517 (diff) | |
download | public-inbox-1561be76574111a53c9d7c284fd03f68d6a5208b.tar.gz |
The special case (if any) belongs at a higher-level, and this is another step towards removing {over_ro}-dependence in our Search object.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r-- | lib/PublicInbox/Search.pm | 13 |
1 files changed, 4 insertions, 9 deletions
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 { |