diff options
author | Eric Wong <e@80x24.org> | 2020-12-27 19:38:29 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-28 23:19:26 +0000 |
commit | 5f875446975b1473c1ffd7196e572e13d58ba56f (patch) | |
tree | af64c0f9bca120d9a0dcc3dedcf024c39d4ed0cc /lib/PublicInbox/IMAP.pm | |
parent | d0e74a3591d9e701af6fea30baacf2ddb51475d5 (diff) | |
download | public-inbox-5f875446975b1473c1ffd7196e572e13d58ba56f.tar.gz |
search: remove {mset} option for ->mset method
The ->mset method always returns a Xapian mset nowadays, so naming a parameter {mset} is too confusing. As it does with MiscSearch, setting the {relevance} parameter to -1 now sorts by ascending docid order. -2 is now supported for descending docid order, too, since it may be useful for lei users.
Diffstat (limited to 'lib/PublicInbox/IMAP.pm')
-rw-r--r-- | lib/PublicInbox/IMAP.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index a3a10bde..2af5ab0c 100644 --- a/lib/PublicInbox/IMAP.pm +++ b/lib/PublicInbox/IMAP.pm @@ -1136,7 +1136,7 @@ sub search_common { my $srch = $self->{ibx}->isrch or return "$tag BAD search not available for mailbox\r\n"; my $opt = { - mset => 2, + relevance => -1, limit => UID_SLICE, uid_range => $range_info }; |