about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdx.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r--lib/PublicInbox/SearchIdx.pm8
1 files changed, 8 insertions, 0 deletions
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