about summary refs log tree commit homepage
path: root/lib/PublicInbox/OverIdx.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-07 03:41:53 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-07 03:42:29 +0000
commit3348ad4b3b1a0865ee58a902953165ea0f4aa4bd (patch)
treefd17dd1b4434cad0dc211c5e890e8c0d5a0d07ce /lib/PublicInbox/OverIdx.pm
parent42c485400522c7c255f6da11391526cb1bc5931b (diff)
downloadpublic-inbox-3348ad4b3b1a0865ee58a902953165ea0f4aa4bd.tar.gz
Since we only query the SQLite over DB for OVER/XOVER; do not
need to waste space storing fields To/Cc/:bytes/:lines or the
XNUM term.  We only use From/Subject/References/Message-ID/:blob
in various places of the PSGI code.

For reindexing, we will take advantage of docid stability
in "xapian-compact --no-renumber" to ensure duplicates do not
show up in search results.  Since the PSGI interface is the
only consumer of Xapian at the moment, it has no need to
search based on NNTP article number.
Diffstat (limited to 'lib/PublicInbox/OverIdx.pm')
-rw-r--r--lib/PublicInbox/OverIdx.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/OverIdx.pm b/lib/PublicInbox/OverIdx.pm
index 08f87447..62fec0da 100644
--- a/lib/PublicInbox/OverIdx.pm
+++ b/lib/PublicInbox/OverIdx.pm
@@ -207,8 +207,8 @@ sub link_refs {
         $tid;
 }
 
-sub parse_references ($$$$) {
-        my ($self, $smsg, $mid0, $mids) = @_;
+sub parse_references ($$$) {
+        my ($smsg, $mid0, $mids) = @_;
         my $mime = $smsg->{mime};
         my $hdr = $mime->header_obj;
         my $refs = references($hdr);
@@ -241,7 +241,7 @@ sub add_overview {
                 blob => $oid,
         }, 'PublicInbox::SearchMsg';
         my $mids = mids($mime->header_obj);
-        my $refs = $self->parse_references($smsg, $mid0, $mids);
+        my $refs = parse_references($smsg, $mid0, $mids);
         my $subj = $smsg->subject;
         my $xpath;
         if ($subj ne '') {