1 package Xapian
::TermIterator
;
5 Xapian::TermIterator - Iterate over a list of terms.
9 This object represents a stream of terms. It overloads C<++> for
10 advancing the iterator, or you can explicitly call the C<inc> method.
11 This class also overloads C<eq>, C<ne>, C<==>, and C<!=>.
13 =head2 Compatibility with Search::Xapian
15 Search::Xapian overloads <""> (stringification) on this class to call
16 the C<get_termname> method. Call C<get_termname> directly instead.
24 Constructor. Defaults to a uninitialized iterator.
30 Advance the iterator by one. (Called implicitly by C<++> overloading)
34 Skip the iterator to term tname, or the first term after tname if tname
35 isn't in the list of terms being iterated.
39 Get the name of the current term.
43 Return the wdf of the current term (if meaningful).
47 Return the term frequency of the current term (if meaningful).
49 =item positionlist_begin
51 Return L<Xapian::PositionIterator> pointing to start of positionlist for current term.
53 =item positionlist_end
55 Return L<Xapian::PositionIterator> pointing to end of positionlist for current term.
59 Returns a string describing this object.
61 =item equal <termiterator>
63 Checks if a termiterator is the same as this termiterator. Also overloaded as
64 the C<eq> and C<==> operators.
66 =item nequal <termiterator>
68 Checks if a termiterator is different from this termiterator. Also overloaded
69 as the C<ne> and C<!=> operators.