about summary refs log tree commit homepage
path: root/lib/PublicInbox/IMAP.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-27 19:38:29 +0000
committerEric Wong <e@80x24.org>2020-12-28 23:19:26 +0000
commit5f875446975b1473c1ffd7196e572e13d58ba56f (patch)
treeaf64c0f9bca120d9a0dcc3dedcf024c39d4ed0cc /lib/PublicInbox/IMAP.pm
parentd0e74a3591d9e701af6fea30baacf2ddb51475d5 (diff)
downloadpublic-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.pm2
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
                 };