A postlist comprising several postlists SYNONYMed together.
void set_weight(const Xapian::Weight *wt_)
Set the weight object to be used for the synonym postlist.
const Xapian::Weight * wt
Weighting object used for calculating the synonym weights.
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
double get_weight(Xapian::termcount doclen, Xapian::termcount unique_terms, Xapian::termcount wdfdocmax) const
Return the weight contribution for the current position.
bool want_wdf
Flag indicating whether the weighting object needs the wdf.
PostList * skip_to(Xapian::docid did, double w_min)
Skip forward to the specified docid.
bool want_wdfdocmax
Flag indicating whether the weighting object needs the wdfdocmax.
SynonymPostList(PostList *subtree, PostListTree *pltree_, bool needs_doclen_)
Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
bool needs_doclen
Does the synonym need the document length?
std::string get_description() const
Return a string description of this object.
Base class for a PostList which wraps another PostList.
Abstract base class for postlists.
PostList * next()
Advance the current position to the next document in the postlist.
Base class for a PostList which wraps another PostList.