]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ExtMsg.pm
search: revert to using 'Q' as a uniQue id per-Xapian conventions
[public-inbox.git] / lib / PublicInbox / ExtMsg.pm
index 6cfc6c322295d2f6f3515de38db75e48e0dfff25..f3076a3476daef7022f66408a8b9cc6f4b1a0352 100644 (file)
@@ -1,5 +1,5 @@
-# Copyright (C) 2015 all contributors <meta@public-inbox.org>
-# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
+# Copyright (C) 2015-2018 all contributors <meta@public-inbox.org>
+# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 #
 # Used by the web interface to link to messages outside of the our
 # public-inboxes.  Mail threads may cross projects/threads; so
@@ -46,7 +46,7 @@ sub ext_msg {
                }
 
                # try to find the URL with Xapian to avoid forking
-               my $doc_id = eval { $s->find_unique_doc_id('mid', $mid) };
+               my $doc_id = eval { $s->find_first_doc_id('Q' . $mid) };
                if ($@) {
                        # xapian not configured properly for this repo
                        push @nox, $other;