67 const char * end = data.data() + data.size();
69 current_term.resize(0);
74 current_term.assign(p, len);
TermList * next()
Advance the current position to the next term in the termlist.
length encoded as a string
InvalidOperationError indicates the API was used in an invalid way.
Abstract base class for termlists.
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
A vector-like container of terms which can be iterated.
Hierarchy of classes which Xapian can throw as exceptions.
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.
Xapian::PositionIterator positionlist_begin() const
Return a PositionIterator for the current position.
Class for iterating over term positions.
bool at_end() const
Return true if the current position is past the last term in this list.
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
void decode_length_and_check(const char **p, const char *end, unsigned &out)
Decode a length encoded by encode_length.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various assertion macros.
TermList * skip_to(const std::string &)
Skip forward to the specified term.
std::string get_termname() const
Return the termname at the current position.