36 RETURN(mset_internal->matches_lower_bound);
43 RETURN(mset_internal->matches_estimated);
50 RETURN(mset_internal->matches_upper_bound);
56 LOGCALL(MATCH,
double,
"MSetPostList::get_maxweight", NO_ARGS);
59 if (cursor == -1)
RETURN(mset_internal->max_possible);
63 if (decreasing_relevance) {
66 RETURN(mset_internal->items[cursor].wt);
70 RETURN(mset_internal->max_attained);
78 RETURN(mset_internal->items[cursor].did);
84 LOGCALL(MATCH,
double,
"MSetPostList::get_weight", NO_ARGS);
86 RETURN(mset_internal->items[cursor].wt);
92 LOGCALL(MATCH,
const string *,
"MSetPostList::get_sort_key", NO_ARGS);
94 RETURN(&mset_internal->items[cursor].sort_key);
100 LOGCALL(MATCH,
const string *,
"MSetPostList::get_collapse_key", NO_ARGS);
102 RETURN(&mset_internal->items[cursor].collapse_key);
120 LOGCALL(MATCH,
double,
"MSetPostList::recalc_maxweight", NO_ARGS);
128 Assert(cursor == -1 || !at_end());
130 if (decreasing_relevance) {
134 if (!at_end() && mset_internal->items[cursor].wt < w_min)
135 cursor = mset_internal->items.size();
138 while (!at_end() && mset_internal->items[cursor].wt < w_min)
156 LOGCALL(MATCH,
bool,
"MSetPostList::at_end", NO_ARGS);
158 RETURN(
size_t(cursor) >= mset_internal->items.size());
164 string desc(
"(MSet ");
165 desc += mset_internal->get_description();
Abstract base class for postlists.
const std::string * get_sort_key() const
Xapian::doccount get_termfreq_min() const
Get a lower bound on the number of documents indexed by this term.
InvalidOperationError indicates the API was used in an invalid way.
Xapian::docid get_docid() const
Return the current docid.
bool at_end() const
Return true if the current position is past the last entry in this list.
Hierarchy of classes which Xapian can throw as exceptions.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
std::string get_description() const
Return a string description of this object.
double recalc_maxweight()
Recalculate the upper bound on what get_weight() can return.
double get_maxweight() const
Return an upper bound on what get_weight() can return.
PostList returning entries from an MSet.
Internal * next()
Advance the current position to the next document in the postlist.
Xapian::termcount get_doclength() const
Not implemented for MSetPostList.
const std::string * get_collapse_key() const
If the collapse key is already known, return it.
double get_weight() const
Return the weight contribution for the current position.
Xapian::doccount get_termfreq_est() const
Get an estimate of the number of documents indexed by this term.
Xapian::doccount get_termfreq_max() const
Get an upper bound on the number of documents indexed by this term.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Xapian::termcount get_unique_terms() const
Return the number of unique terms in the current document.
Various assertion macros.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
PostList * skip_to(Xapian::docid did, double w_min)
Not meaningful for MSetPostList.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
UnimplementedError indicates an attempt to use an unimplemented feature.