lib/PublicInbox/Search.pm | 8 -------- lib/PublicInbox/SearchIdx.pm | 8 ++++++++ diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 7d42aaad40d45676e2601d32d52a4d5918856e8d..6f5e0624a4a5986369f12de95d81f6fe3a01fbf4 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -403,14 +403,6 @@ $cb->($smsg) or return; } } -# 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 446cfb0d50afd8be723a24c4f6f5751de80ba548..a234c8c32384264853b35bc6b476660c950cb89f 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -389,6 +389,14 @@ } $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