41 return get_termfreq();
47 return get_termfreq();
53 return get_termfreq();
62 need_doclength =
weight->get_sumpart_needs_doclength_();
63 need_unique_terms =
weight->get_sumpart_needs_uniqueterms_();
80 doclen = get_doclength();
81 if (need_unique_terms)
82 unique_terms = get_unique_terms();
83 double sumpart =
weight->get_sumpart(get_wdf(), doclen, unique_terms);
98 LOGCALL(MATCH,
TermFreqs,
"LeafPostList::get_termfreq_est_using_stats", stats);
104 map<string, TermFreqs>::const_iterator i = stats.
termfreqs.find(term);
TermFreqs get_termfreq_est_using_stats(const Xapian::Weight::Internal &stats) const
Get an estimate for the termfreq and reltermfreq, given the stats.
#define AssertRel(A, REL, B)
double weight
The weight of a document or term.
Xapian::doccount get_termfreq_max() const
Get an upper bound on the number of documents indexed by this term.
Xapian::doccount get_termfreq_est() const
Get an estimate of the number of documents indexed by this term.
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
Abstract base class for leaf postlists.
Abstract base class for leaf postlists.
double get_maxweight() const
Return an upper bound on what get_weight() can return.
std::map< std::string, TermFreqs > termfreqs
Map of term frequencies and relevant term frequencies for the collection.
Xapian::doccount collection_size
Number of documents in the collection.
Xapian::doccount rset_size
Number of relevant documents in the collection.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
void set_termweight(const Xapian::Weight *weight_)
Set the weighting scheme to use during matching.
Xapian::doccount get_termfreq_min() const
Get a lower bound on the number of documents indexed by this term.
Class to hold statistics for a given collection.
void add_poslist(PositionList *poslist)
virtual LeafPostList * open_nearby_postlist(const std::string &term_) const
Open another postlist from the same database.
void gather_position_lists(OrPositionList *orposlist)
Gather PositionList* objects for a subtree.
The frequencies for a term.
double get_weight() const
Return the weight contribution for the current position.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various assertion macros.
Xapian::termcount count_matching_subqs() const
Count the number of leaf subqueries which match at the current position.
Xapian::totallength total_length
Total length of all documents in the collection.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
Merge two PositionList objects using an OR operation.
Abstract base class for weighting schemes.