about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-30 00:38:05 +0000
committerEric Wong <e@80x24.org>2015-08-30 01:10:01 +0000
commit8ea217f4452e34776ba294b5090827c99656cada (patch)
tree23d72ea008cdd0ba6d37dde2d8a303c60ecbe7e1 /lib/PublicInbox/Search.pm
parentf24d362fb0959cdfab37a6da0a66a985764a2752 (diff)
downloadpublic-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/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm17
1 files changed, 2 insertions, 15 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index 4b3830e2..d3faaebb 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -24,7 +24,8 @@ use constant {
         # 4 - change "Re: " normalization, avoid circular Reference ghosts
         # 5 - subject_path drops trailing '.'
         # 6 - preserve References: order in document data
-        SCHEMA_VERSION => 6,
+        # 7 - remove references and inreplyto terms
+        SCHEMA_VERSION => 7,
         QP_FLAGS => FLAG_PHRASE|FLAG_BOOLEAN|FLAG_LOVEHATE|FLAG_WILDCARD,
 };
 
@@ -37,8 +38,6 @@ my %bool_pfx_internal = (
 my %bool_pfx_external = (
         path => 'XPATH',
         thread => 'G', # newsGroup (or similar entity - e.g. a web forum name)
-        references => 'XREFS',
-        inreplyto => 'XIRT',
 );
 
 my %prob_prefix = (
@@ -87,18 +86,6 @@ sub get_subject_path {
         $self->do_enquire($query, $opts);
 }
 
-# given a message ID, get followups to a message
-sub get_followups {
-        my ($self, $mid, $opts) = @_;
-        $mid = mid_clean($mid);
-        $mid = mid_compress($mid);
-        my $qp = $self->qp;
-        my $irt = $qp->parse_query("inreplyto:$mid", 0);
-        my $ref = $qp->parse_query("references:$mid", 0);
-        my $query = Search::Xapian::Query->new(OP_OR, $irt, $ref);
-        $self->do_enquire($query, $opts);
-}
-
 sub get_thread {
         my ($self, $mid, $opts) = @_;
         my $smsg = eval { $self->lookup_message($mid) };