diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-29 09:57:53 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-29 10:00:05 +0000 |
commit | 417612b7b7bb9750f3c91135e60aa8bbdd461496 (patch) | |
tree | b39d8dfa433682593ffcc4c76201345d8b88c069 /lib/PublicInbox/SearchIdx.pm | |
parent | 11707dae97d1f4638157cfee298464b2f2deeed4 (diff) | |
download | public-inbox-417612b7b7bb9750f3c91135e60aa8bbdd461496.tar.gz |
We do not need this subroutine for read-only use in Search.pm
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r-- | lib/PublicInbox/SearchIdx.pm | 8 |
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 |