1Lucy::Search::CollectorU:s:eBritCCoonltlreicbtuotre(d3L)Puecryl::DSoecaurmcehn:t:aCtoilolnector::BitCollector(3)
2
3
4

NAME

6       Lucy::Search::Collector::BitCollector - Collector which records doc
7       nums in a BitVector.
8

SYNOPSIS

10           my $bit_vec = Lucy::Object::BitVector->new(
11               capacity => $searcher->doc_max + 1,
12           );
13           my $bit_collector = Lucy::Search::Collector::BitCollector->new(
14               bit_vector => $bit_vec,
15           );
16           $searcher->collect(
17               collector => $bit_collector,
18               query     => $query,
19           );
20

DESCRIPTION

22       BitCollector is a Collector which saves matching document ids in a
23       BitVector.  It is useful for recording the entire set of documents
24       which matches a query.
25

CONSTRUCTORS

27   new
28           my $bit_collector = Lucy::Search::Collector::BitCollector->new(
29               bit_vector => $bit_vec,    # required
30           );
31
32       Create a new BitCollector.
33
34bit_vector - A Lucy::Object::BitVector.
35

METHODS

37   collect
38           $bit_collector->collect($doc_id);
39
40       Set bit in the objectXs BitVector for the supplied doc id.
41

INHERITANCE

43       Lucy::Search::Collector::BitCollector isa Lucy::Search::Collector isa
44       Clownfish::Obj.
45
46
47
48perl v5.32.1                      2021-L0u1c-y2:7:Search::Collector::BitCollector(3)
Impressum