47 current_wdf, doclen, current_termfreq, db_size);
61 return current_termfreq;
70 const char* p_end = data.data() + data.size();
74 current_term.resize(
size_t(
static_cast<unsigned char>(*
p++)));
90 while (current_term <
term) {
100 return db->positionlist_count(did, current_term);
106 return db->open_position_list(did, current_term);
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
void accumulate_stats(Xapian::Internal::ExpandStats &stats) const
Collate weighting information for the current term.
Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.
TermList * next()
Advance the current position to the next term in the termlist.
TermList * skip_to(std::string_view term)
Skip forward to the specified term.
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
PositionList * positionlist_begin() const
Return PositionList for the current position.
Collates statistics while calculating term weight in an ESet.
void accumulate(size_t shard_index, Xapian::termcount wdf, Xapian::termcount doclen, Xapian::doccount subtf, Xapian::doccount subdbsize)
Abstract base class for iterating term positions in a document.
Abstract base class for termlists.
Collate statistics and calculate the term weights for the ESet.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various assertion macros.
void unpack_throw_serialisation_error(const char *p)
Throw appropriate SerialisationError.
Pack types into strings and unpack them again.
bool unpack_string_append(const char **p, const char *end, std::string &result)
Decode a std::string from a string and append.
bool unpack_uint(const char **p, const char *end, U *result)
Decode an unsigned integer from a string.
RemoteDatabase is the baseclass for remote database implementations.
Iterate terms in a remote document.