diff options
author | Eric Wong <e@80x24.org> | 2020-09-02 11:04:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-09-03 20:11:03 +0000 |
commit | 80b887f29b2ec71d025b4c266a1c26314758994c (patch) | |
tree | 31f9937daf20c21b33c0407763bf2d6bd06d2f66 /lib/PublicInbox/SearchView.pm | |
parent | 851aa7183cf2b152d7ff187729bc896597d22fad (diff) | |
download | public-inbox-80b887f29b2ec71d025b4c266a1c26314758994c.tar.gz |
search: replace ->query with ->mset
Nearly all of the search uses in the production code rely on a Xapian mset iterator being returned (instead of an array of $smsg objects). So default to returning the mset and move the burden of smsg array conversion into the test cases.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r-- | lib/PublicInbox/SearchView.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 892e8fda..c482f1c9 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -47,7 +47,6 @@ sub sres_top_html { my $opts = { limit => $q->{l}, offset => $o, - mset => 1, relevance => $q->{r}, thread => $q->{t}, asc => $asc, @@ -55,7 +54,7 @@ sub sres_top_html { my ($mset, $total, $err, $html); retry: eval { - $mset = $srch->query($query, $opts); + $mset = $srch->mset($query, $opts); $total = $mset->get_matches_estimated; }; $err = $@; |