about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-04 22:38:07 +0500
committerEric Wong <e@80x24.org>2021-04-05 07:16:44 +0000
commit2bc26e606d4b7f109e263911613b2d1d4692637e (patch)
treeb01d1605c1181fac33661ff564b0d64aa46f2975 /lib/PublicInbox/LeiSearch.pm
parent842e684f0a4154787274843eb3c9be2eef11b160 (diff)
downloadpublic-inbox-2bc26e606d4b7f109e263911613b2d1d4692637e.tar.gz
It currently conflicts with the way OverIdx and SearchIdx
index messages, ultimately leading to violating a NOT NULL
constraint on id2num.id in over.sqlite3.

We may allow searching Resent-* fields separately, though I'm
not sure how useful it'll be.
Diffstat (limited to 'lib/PublicInbox/LeiSearch.pm')
-rw-r--r--lib/PublicInbox/LeiSearch.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/LeiSearch.pm b/lib/PublicInbox/LeiSearch.pm
index 148aa185..082176e7 100644
--- a/lib/PublicInbox/LeiSearch.pm
+++ b/lib/PublicInbox/LeiSearch.pm
@@ -8,7 +8,7 @@ use v5.10.1;
 use parent qw(PublicInbox::ExtSearch);
 use PublicInbox::Search qw(xap_terms);
 use PublicInbox::ContentHash qw(content_digest content_hash);
-use PublicInbox::MID qw(mids mids_in);
+use PublicInbox::MID qw(mids mids_for_index);
 
 # get combined docid from over.num:
 # (not generic Xapian, only works with our sharding scheme)
@@ -54,8 +54,7 @@ sub content_key ($) {
         my ($eml) = @_;
         my $dig = content_digest($eml);
         my $chash = $dig->clone->digest;
-        my $mids = mids_in($eml,
-                        qw(Message-ID X-Alt-Message-ID Resent-Message-ID));
+        my $mids = mids_for_index($eml);
         unless (@$mids) {
                 $eml->{-lei_fake_mid} = $mids->[0] =
                                 PublicInbox::Import::digest2mid($dig, $eml, 0);