From 4c315ed49fe8a6224264d74c490e0ee552365b2f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 27 Oct 2020 07:54:44 +0000 Subject: searchidx: remove xref3 support for Xapian It doesn't seem worth storing xref3 data in Xapian now that the same info is in over.sqlite3. --- lib/PublicInbox/Smsg.pm | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib/PublicInbox/Smsg.pm') diff --git a/lib/PublicInbox/Smsg.pm b/lib/PublicInbox/Smsg.pm index c0fd85fd..14086538 100644 --- a/lib/PublicInbox/Smsg.pm +++ b/lib/PublicInbox/Smsg.pm @@ -137,17 +137,4 @@ sub subject_normalized ($) { $subj; } -sub xref3 { - my ($self, $doc) = @_; - my $end = $doc->termlist_end; - my $it = $doc->termlist_begin; - $it->skip_to('P'); - my @ret; - for (; $it != $end; $it++) { - my $val = $it->get_termname; - $val =~ s/\AP// and push @ret, $val; - } - \@ret; -} - 1; -- cgit v1.2.3-24-ge0c7