127 string desc =
"OrPosPostList(";
Abstract base class for postlists.
virtual Xapian::docid get_docid() const =0
Return the current docid.
TermFreqs get_termfreq_est_using_stats(const Xapian::Weight::Internal &stats) const
Get an estimate for the termfreq and reltermfreq, given the stats.
Wrapper postlist providing positions for an OR.
virtual Internal * skip_to(Xapian::docid did, double w_min)=0
Skip forward to the specified docid.
virtual double recalc_maxweight()=0
Recalculate the upper bound on what get_weight() can return.
Xapian::docid get_docid() const
Return the current docid.
virtual Xapian::termcount get_unique_terms() const =0
Return the number of unique terms in the current document.
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
Xapian::doccount get_termfreq_min() const
Get a lower bound on the number of documents indexed by this term.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Xapian::termcount get_doclength() const
Return the length of current document.
bool at_end() const
Return true if the current position is past the last entry in this list.
Internal * skip_to(Xapian::docid, double w_min)
Skip forward to the specified docid.
virtual TermFreqs get_termfreq_est_using_stats(const Xapian::Weight::Internal &stats) const
Get an estimate for the termfreq and reltermfreq, given the stats.
virtual Xapian::doccount get_termfreq_max() const =0
Get an upper bound on the number of documents indexed by this term.
virtual Xapian::doccount get_termfreq_est() const =0
Get an estimate of the number of documents indexed by this term.
double get_weight() const
Return the weight contribution for the current position.
virtual Xapian::doccount get_termfreq_min() const =0
Get a lower bound on the number of documents indexed by this term.
Class to hold statistics for a given collection.
Internal * next()
Advance the current position to the next document in the postlist.
PositionList * gather(PostList *pl)
Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
std::string get_description() const
Return a string description of this object.
PositionList * read_position_list()
Read the position list for the term in the current document and return a pointer to it (owned by the ...
virtual double get_maxweight() const =0
Return an upper bound on what get_weight() can return.
double get_maxweight() const
Return an upper bound on what get_weight() can return.
Xapian::termcount get_unique_terms() const
Return the number of unique terms in the current document.
The frequencies for a term.
Xapian::doccount get_termfreq_max() const
Get an upper bound on the number of documents indexed by this term.
virtual Internal * next(double w_min)=0
Advance the current position to the next document in the postlist.
virtual Xapian::termcount get_doclength() const =0
Return the length of current document.
virtual std::string get_description() const =0
Return a string description of this object.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
virtual Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
OrPositionList position_list
virtual bool at_end() const =0
Return true if the current position is past the last entry in this list.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Abstract base class for iterating term positions in a document.
Xapian::doccount get_termfreq_est() const
Get an estimate of the number of documents indexed by this term.
virtual Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
virtual double get_weight() const =0
Return the weight contribution for the current position.