1Lucy::Index::PostingLisUts(e3r)Contributed Perl DocumentLautciyo:n:Index::PostingList(3)
2
3
4

NAME

6       Lucy::Index::PostingList - Term-Document pairings.
7

SYNOPSIS

9           my $posting_list_reader
10               = $seg_reader->obtain("Lucy::Index::PostingListReader");
11           my $posting_list = $posting_list_reader->posting_list(
12               field => 'content',
13               term  => 'foo',
14           );
15           while ( my $doc_id = $posting_list->next ) {
16               say "Matching doc id: $doc_id";
17           }
18

DESCRIPTION

20       PostingList is an iterator which supplies a list of document ids that
21       match a given term.
22
23       See IRTheory for definitions of XpostingX and Xposting listX.
24

ABSTRACT METHODS

26   get_doc_freq
27           my $int = $posting_list->get_doc_freq();
28
29       Return the number of documents that the PostingList contains.  (This
30       number will include any documents which have been marked as deleted but
31       not yet purged.)
32
33   seek
34           $posting_list->seek($target);
35           $posting_list->seek();  # default: undef
36
37       Prepare the PostingList object to iterate over matches for documents
38       that match "target".
39
40       ยท   target - The term to match.  If undef, the iterator will be empty.
41

INHERITANCE

43       Lucy::Index::PostingList isa Lucy::Search::Matcher isa Clownfish::Obj.
44
45
46
47perl v5.30.1                      2020-01-30       Lucy::Index::PostingList(3)
Impressum