21 #ifndef XAPIAN_INCLUDED_ORTERMLIST_H
22 #define XAPIAN_INCLUDED_ORTERMLIST_H
A termlist which ORs two termlists together, adding term frequencies.
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
FreqAdderOrTermList(TermList *left_, TermList *right_)
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
TermList * next()
Advance the current position to the next term in the termlist.
std::string right_current
std::string get_termname() const
Return the termname at the current position.
void check_started() const
Check that next() has already been called.
OrTermList(TermList *left_, TermList *right_)
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
std::string left_current
The current term for left and right respectively.
void accumulate_stats(Xapian::Internal::ExpandStats &stats) const
Collate weighting information for the current term.
Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.
Xapian::PositionIterator positionlist_begin() const
Return a PositionIterator for the current position.
TermList * left
The two TermList objects we're merging.
bool at_end() const
Return true if the current position is past the last term in this list.
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
TermList * skip_to(const std::string &term)
Skip forward to the specified term.
Collates statistics while calculating term weight in an ESet.
Class for iterating over term positions.
Abstract base class for termlists.
The Xapian namespace contains public interfaces for the Xapian library.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Abstract base class for termlists.