1 package Xapian
::PostingIterator
;
5 Xapian::PostingIterator - Iterate over the list of documents indexed
10 This iterator represents a stream of documents indexed by a term. It overloads
11 C<++> for advancing the iterator, or you can explicitly call the C<inc> method.
12 This class also overloads C<eq>, C<ne>, C<==>, and C<!=>.
14 =head2 Compatibility with Search::Xapian
16 Search::Xapian overloads <""> (stringification) on this class to call
17 the C<get_description> method. Call C<get_description> explicitly instead.
19 Search::Xapian overloads <0+> (convert to an integer) on this class to call
20 the C<get_docid> method. Call C<get_docid> explicitly instead.
28 Constructor. Defaults to an uninitialized iterator.
34 Advance the iterator by one. (Called implicitly by C<++> overloading).
38 Advance the iterator to document docid, or the first document after docid if docid
39 isn't in the list of documents being iterated.
43 Get the unique id of the document at the current position of the iterator.
47 Return the wdf for the current position of the iterator.
49 =item positionlist_begin
51 Return L<Xapian::PositionIterator> pointing to start of positionlist for
54 =item positionlist_end
56 Return L<Xapian::PositionIterator> pointing to end of positionlist for
61 Get the length of the document at the current position of the iterator.
63 =item equal <postingiterator>
65 Compare for equality with another Xapian::PostingIterator object. Also
66 overloaded to the C<eq> and C<==> operators.
68 =item nequal <postingiterator>
70 Compare for inequality with another Xapian::PostingIterator object. Also
71 overloaded to the C<ne> and C<!=> operators.
75 Return a description of this object.