Lucy::Search::Collector::BitCollector - Collector which records doc nums in a BitVector.
my $bit_vec = Lucy::Object::BitVector->new( capacity => $searcher->doc_max + 1, ); my $bit_collector = Lucy::Search::Collector::BitCollector->new( bit_vector => $bit_vec, ); $searcher->collect( collector => $bit_collector, query => $query, );
BitCollector is a Collector which saves matching document ids in a BitVector. It is useful for recording the entire set of documents which matches a query.
my $bit_collector = Lucy::Search::Collector::BitCollector->new( bit_vector => $bit_vec, # required );
Create a new BitCollector.
$bit_collector->collect($doc_id);
Set bit in the object’s BitVector for the supplied doc id.
Lucy::Search::Collector::BitCollector isa Lucy::Search::Collector isa Clownfish::Obj.
Copyright © 2010-2015 The Apache Software Foundation, Licensed under the
Apache License, Version 2.0.
Apache Lucy, Lucy, Apache, the Apache feather logo, and the Apache Lucy project logo are trademarks of The
Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their
respective owners.