45 Assert(it != doc->terms->end());
46 return it->second.get_wdf();
58 return it->second.get_positions();
70 return clamp_cast<Xapian::termcount>(it->second.count_positions());
76 if (it == doc->terms->end()) {
77 it = doc->terms->begin();
81 while (it != doc->terms->end() && it->second.is_deleted()) {
84 if (it == doc->terms->end()) {
87 current_term = it->first;
94 it = doc->terms->lower_bound(
term);
95 while (it != doc->terms->end() && it->second.is_deleted()) {
98 if (it == doc->terms->end()) {
101 current_term = it->first;
Cast a value to a type, clamping out of range values.
const Xapian::VecCOW< Xapian::termpos > * get_vec_termpos() const
Get pointer to VecCOW<termpos> if that's the internal representation.
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
TermList * skip_to(std::string_view term)
Skip forward to the specified term.
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
PositionList * positionlist_begin() const
Return PositionList for the current position.
TermList * next()
Advance the current position to the next term in the termlist.
Xapian::termcount get_approx_size() const
Return approximate size of this termlist.
Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.
PositionList from an InMemory DB or a Document object.
InvalidOperationError indicates the API was used in an invalid way.
Abstract base class for iterating term positions in a document.
Abstract base class for termlists.
Suitable for "simple" type T.
Iteration over terms in a document.
Hierarchy of classes which Xapian can throw as exceptions.
PositionList from an InMemory DB or a Document object.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various assertion macros.