about summary refs log tree commit homepage
path: root/lib/PublicInbox/ExtMsg.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/ExtMsg.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/ExtMsg.pm')
-rw-r--r--lib/PublicInbox/ExtMsg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm
index 6a173f67..4df885ab 100644
--- a/lib/PublicInbox/ExtMsg.pm
+++ b/lib/PublicInbox/ExtMsg.pm
@@ -33,7 +33,7 @@ sub search_partial ($$) {
         my ($ibx, $mid) = @_;
         return if length($mid) < $MIN_PARTIAL_LEN;
         my $srch = $ibx->search or return; # NOT ->isrch, we already try ->ALL
-        my $opt = { limit => PARTIAL_MAX, mset => 2 };
+        my $opt = { limit => PARTIAL_MAX, relevance => -1 };
         my @try = ("m:$mid*");
         my $chop = $mid;
         if ($chop =~ s/(\W+)(\w*)\z//) {