Base class for classes which filter another PostList.
PostList * check(Xapian::docid did, double w_min, bool &valid)
Check if the specified docid occurs in this postlist.
bool vet(double w_min)
Check if the current document is suitable.
Xapian::doccount accepted
Number of times test_doc() returned true.
Xapian::doccount rejected
Number of times test_doc() returned false.
virtual bool test_doc()=0
Check if the current document should be selected.
double cached_weight
Used to avoid calculating the weight twice for a given document.
EstimateOp * estimate_op
Object to report accepted/rejected counts to.
SelectPostList(PostList *pl_, EstimateOp *estimate_op_, PostListTree *pltree_)
double get_weight(Xapian::termcount doclen, Xapian::termcount unique_terms, Xapian::termcount wdfdocmax) const
Return the weight contribution for the current position.
PostList * skip_to(Xapian::docid did, double w_min)
Skip forward to the specified docid.
bool at_end() const
Return true if the current position is past the last entry in this list.
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.