22 #ifndef XAPIAN_INCLUDED_SYNONYMPOSTLIST_H 23 #define XAPIAN_INCLUDED_SYNONYMPOSTLIST_H 77 : subtree(subtree_), matcher(matcher_), wt(NULL),
79 wdf_disjoint(wdf_disjoint_),
80 doclen_lower_bound(doclen_lower_bound_) { }
Abstract base class for postlists.
std::string get_description() const
Return a string description of this object.
bool want_doclength
Flag indicating whether the weighting object needs the doclength.
class for performing a match
PostList * skip_to(Xapian::docid did, double w_min)
Skip forward to the specified docid.
bool want_unique_terms
Flag indicating whether the weighting object needs the number of unique terms.
Xapian::doccount get_termfreq_max() const
Get an upper bound on the number of documents indexed by this term.
bool at_end() const
Return true if the current position is past the last entry in this list.
Xapian::termcount get_wdf() const
Return the wdf for the document at the current position.
Abstract base class for postlists.
Xapian::docid get_docid() const
Return the current docid.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
bool wdf_disjoint
Are the subquery's wdf contributions disjoint?
Xapian::termcount get_doclength() const
Return the length of current document.
const Xapian::Weight * wt
Weighting object used for calculating the synonym weights.
PostList * subtree
The subtree, which starts as an OR of all the sub-postlists being joined with Synonym, but may decay into something else.
Internal * next()
Advance the current position to the next document in the postlist.
SynonymPostList(PostList *subtree_, MultiMatch *matcher_, Xapian::termcount doclen_lower_bound_, bool wdf_disjoint_)
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.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
MultiMatch * matcher
The object which is using this postlist to perform a match.
double get_weight() const
Return the weight contribution for the current position.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Xapian::termcount get_unique_terms() const
Return the number of unique terms in the current document.
Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
Xapian::termcount doclen_lower_bound
Lower bound on doclength in the subdatabase we're working over.
bool want_wdf
Flag indicating whether the weighting object needs the wdf.
Xapian::doccount get_termfreq_min() const
Get a lower bound on the number of documents indexed by this term.
Abstract base class for weighting schemes.
double get_maxweight() const
Return an upper bound on what get_weight() can return.
Xapian::doccount get_termfreq_est() const
Get an estimate of the number of documents indexed by this term.