about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Search.pm8
-rw-r--r--lib/PublicInbox/SearchIdx.pm8
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index 7d42aaad..6f5e0624 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -403,14 +403,6 @@ sub each_smsg_by_mid {
         }
 }
 
-# returns begin and end PostingIterator
-sub find_doc_ids {
-        my ($self, $termval) = @_;
-        my $db = $self->{xdb};
-
-        ($db->postlist_begin($termval), $db->postlist_end($termval));
-}
-
 # normalize subjects so they are suitable as pathnames for URLs
 # XXX: consider for removal
 sub subject_path {
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index 446cfb0d..a234c8c3 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -389,6 +389,14 @@ sub add_message {
         $doc_id;
 }
 
+# returns begin and end PostingIterator
+sub find_doc_ids {
+        my ($self, $termval) = @_;
+        my $db = $self->{xdb};
+
+        ($db->postlist_begin($termval), $db->postlist_end($termval));
+}
+
 sub batch_do {
         my ($self, $termval, $cb) = @_;
         my $batch_size = 1000; # don't let @ids grow too large to avoid OOM