53 return db->get_doclength(did);
61 return db->get_unique_terms(did);
114 return db.get() == NULL;
126 string msg(
"ContiguousAllDocsPostList(1..");
Abstract base class for postlists.
bool at_end() const
Return true if and only if we're off the end of the list.
PositionList * read_position_list()
Throws InvalidOperationError.
InvalidOperationError indicates the API was used in an invalid way.
Iterate all document ids when they form a contiguous range.
Xapian::termcount get_wdf_upper_bound() const
Always return 1 (wdf isn't totally meaningful for us).
Xapian::termcount get_doclength() const
Return the length of current document.
Convert types to std::string.
PostList * skip_to(Xapian::docid target, double w_min)
Skip ahead to next document with docid >= target.
Hierarchy of classes which Xapian can throw as exceptions.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Xapian::termcount get_unique_terms() const
Return the number of unique terms.
Internal * next()
Advance the current position to the next document in the postlist.
string str(int value)
Convert int to std::string.
Xapian::doccount get_termfreq() const
Return the term frequency.
Xapian::termcount get_wdf() const
Always return 1 (wdf isn't totally meaningful for us).
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Various assertion macros.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Abstract base class for iterating term positions in a document.
std::string get_description() const
Return a string description of this object.
Xapian::docid get_docid() const
Return the current docid.
PositionList * open_position_list() const
Throws InvalidOperationError.