diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-13 03:02:56 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-14 00:35:23 +0000 |
commit | 956ab5a5362a76cb70488c042d0e087902ccc2b8 (patch) | |
tree | 5c0fdb9a6bb677694aabcebce88fdf301198c8e1 /lib/PublicInbox/SearchMsg.pm | |
parent | dca7dc77cdc0ce8b2b1fc440a2a45011b58ba112 (diff) | |
download | public-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.pm | 2 |
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; } } |