about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchMsg.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-02-13 03:02:56 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-02-14 00:35:23 +0000
commit956ab5a5362a76cb70488c042d0e087902ccc2b8 (patch)
tree5c0fdb9a6bb677694aabcebce88fdf301198c8e1 /lib/PublicInbox/SearchMsg.pm
parentdca7dc77cdc0ce8b2b1fc440a2a45011b58ba112 (diff)
downloadpublic-inbox-956ab5a5362a76cb70488c042d0e087902ccc2b8.tar.gz
This will allow easier-compatibility with v2 code which will
introduce content_id as the unique identifier.
The old "XMID" becomes "XM" as a free text searchable term.
"Q" becomes "XMID" as a boolean prefix.

There's no user-visible changes in this, but there needs to
be a schema version bump later on...
(more changes planned which can affect v1)
Diffstat (limited to 'lib/PublicInbox/SearchMsg.pm')
-rw-r--r--lib/PublicInbox/SearchMsg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchMsg.pm b/lib/PublicInbox/SearchMsg.pm
index 70aa7067..25c1abb8 100644
--- a/lib/PublicInbox/SearchMsg.pm
+++ b/lib/PublicInbox/SearchMsg.pm
@@ -157,7 +157,7 @@ sub mid ($;$) {
         } elsif (my $rv = $self->{mid}) {
                 $rv;
         } else {
-                $self->{mid} = _get_term_val($self, 'Q', qr/\AQ/) ||
+                $self->{mid} = _get_term_val($self, 'XMID', qr/\AXMID/) ||
                                 $self->_extract_mid;
         }
 }