From 3f2d9e30255824da52bca422d07e97e0859500e2 Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Sat, 3 Mar 2018 04:00:09 +0000 Subject: searchidx: support indexing multiple MIDs It's possible to have a message handle multiple terms; so use this feature to ensure messages with multiple MIDs can be found by either one. --- lib/PublicInbox/SearchMsg.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/PublicInbox/SearchMsg.pm') diff --git a/lib/PublicInbox/SearchMsg.pm b/lib/PublicInbox/SearchMsg.pm index 014f4909..a5565345 100644 --- a/lib/PublicInbox/SearchMsg.pm +++ b/lib/PublicInbox/SearchMsg.pm @@ -176,4 +176,11 @@ sub path { $self->{path} = _get_term_val($self, 'XPATH', qr/\AXPATH/); # path } +sub type { + my ($self) = @_; + my $type = $self->{type}; + return $type if defined $type; + $self->{type} = _get_term_val($self, 'T', qr/\AT/); +} + 1; -- cgit v1.2.3-24-ge0c7