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.
TermList * skip_to(std::string_view term)
Skip forward to the specified term.
void check_started() const
Check that next() has already been called.
PositionList * positionlist_begin() const
Return PositionList for the current position.
OrTermList(TermList *left_, TermList *right_)
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
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.
TermList * left
The two TermList objects we're merging.
int cmp
The result of left->get_termname().compare(right->get_termname()).
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
Collates statistics while calculating term weight in an ESet.
Abstract base class for iterating term positions in a document.
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.