21 #ifndef XAPIAN_INCLUDED_ANDMAYBEPOSTLIST_H
22 #define XAPIAN_INCLUDED_ANDMAYBEPOSTLIST_H
51 bool* valid_ptr = NULL);
PostList class implementing Query::OP_AND_MAYBE.
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
AndMaybePostList(PostList *left, PostList *right, double lmax, double rmax, PostListTree *pltree_)
Construct as decay product from OrPostList.
double pl_max
Current max weight from WrapperPostList's pl.
Xapian::docid r_did
Current docid from r (or 0).
PostList * skip_to(Xapian::docid did, double w_min)
Skip forward to the specified docid.
PostList * decay_to_and(Xapian::docid did, double w_min, bool *valid_ptr=NULL)
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
Xapian::docid get_docid() const
Return the current docid.
double get_weight(Xapian::termcount doclen, Xapian::termcount unique_terms, Xapian::termcount wdfdocmax) const
Return the weight contribution for the current position.
void gather_position_lists(OrPositionList *orposlist)
Gather PositionList* objects for a subtree.
Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
Xapian::docid pl_did
Current docid from WrapperPostList's pl.
double r_max
Current max weight from r.
std::string get_description() const
Return a string description of this object.
PostList * r
Right-hand side of OP_MAYBE.
PostList * check(Xapian::docid did, double w_min, bool &valid)
Check if the specified docid occurs in this postlist.
AndMaybePostList(PostList *left, PostList *right, PostListTree *pltree_)
bool maybe_matches() const
Does r match at the current position?
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.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Class for managing a tree of PostList objects.
Base class for a PostList which wraps another PostList.