21 #ifndef XAPIAN_INCLUDED_DBCHECK_H 22 #define XAPIAN_INCLUDED_DBCHECK_H std::string termstats_to_string(const Xapian::Database &db, const std::string &term)
Convert statistics about a term to a string.
std::string docterms_to_string(const Xapian::Database &db, Xapian::docid did)
Convert the list of terms in a document to a string.
This class is used to access a database, or a group of databases.
void dbcheck(const Xapian::Database &db, Xapian::doccount expected_doccount, Xapian::docid expected_lastdocid)
Check consistency of database and statistics.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
std::string docstats_to_string(const Xapian::Database &db, Xapian::docid did)
Convert statistics about a document to a string.
Public interfaces for the Xapian library.
std::string postlist_to_string(const Xapian::Database &db, const std::string &tname)
Convert the list of postings in a postlist to a string.
std::string positions_to_string(Xapian::PositionIterator &it, const Xapian::PositionIterator &end, Xapian::termcount *count=NULL)
Convert the list of positions in a positionlist to a string.
Class for iterating over term positions.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.