Lucy::Index::PostingListReader - Read postings data.
my $posting_list_reader = $seg_reader->obtain("Lucy::Index::PostingListReader"); my $posting_list = $posting_list_reader->posting_list( field => 'title', term => 'foo', );
PostingListReaders produce PostingList objects which convey document matching information.
my $posting_list = $posting_list_reader->posting_list( field => $field # default: undef term => $term # default: undef );
Returns a PostingList,
or undef if either field
is undef or field
is not present in any documents.
my $result = $posting_list_reader->aggregator( readers => $readers # required offsets => $offsets # required );
Returns undef since PostingLists may only be iterated at the segment level.
Lucy::Index::PostingListReader isa Lucy::Index::DataReader 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.