44 Assert(it != doc->terms->end());
45 return it->second.get_wdf();
57 return it->second.get_positions();
69 return it->second.count_positions();
75 if (it == doc->terms->end()) {
76 it = doc->terms->begin();
80 while (it != doc->terms->end() && it->second.is_deleted()) {
83 if (it == doc->terms->end()) {
86 current_term = it->first;
93 it = doc->terms->lower_bound(
term);
94 while (it != doc->terms->end() && it->second.is_deleted()) {
97 if (it == doc->terms->end()) {
100 current_term = it->first;
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.