diff options
author | Eric Wong <e@80x24.org> | 2015-08-30 00:38:05 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-30 01:10:01 +0000 |
commit | 8ea217f4452e34776ba294b5090827c99656cada (patch) | |
tree | 23d72ea008cdd0ba6d37dde2d8a303c60ecbe7e1 /lib/PublicInbox/SearchIdx.pm | |
parent | f24d362fb0959cdfab37a6da0a66a985764a2752 (diff) | |
download | public-inbox-8ea217f4452e34776ba294b5090827c99656cada.tar.gz |
We no longer need them, as we can rely on index-time thread resolution and thread merging. This allows us to index less data and hopefully increase efficiency.
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r-- | lib/PublicInbox/SearchIdx.pm | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index 2ac53a73..dec33334 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -238,20 +238,15 @@ sub link_message_to_parents { } } if (@refs) { - $doc->add_term(xpfx('inreplyto') . $irt) if defined $irt; $smsg->{references_sorted} = '<'.join('><', @refs).'>'; - my $ref_pfx = xpfx('references'); - # first ref *should* be the thread root, # but we can never trust clients to do the right thing my $ref = shift @refs; - $doc->add_term($ref_pfx . $ref); $tid = $self->_resolve_mid_to_tid($ref); # the rest of the refs should point to this tid: foreach $ref (@refs) { - $doc->add_term($ref_pfx . $ref); my $ptid = $self->_resolve_mid_to_tid($ref); if ($tid ne $ptid) { $self->merge_threads($tid, $ptid); |