47 return db->get_doclength(lastdocid);
53 return db->get_unique_terms(lastdocid);
65 return db->open_position_list(lastdocid, term);
73 pos = postings.data();
74 pos_end = pos + postings.size();
96 while (pos && lastdocid < did)
104 return (pos == NULL && started);
120 string desc =
"NetworkPostList(";
Xapian::docid get_docid() const
Get the current document ID.
Abstract base class for postlists.
length encoded as a string
Xapian::termcount get_unique_terms() const
Get the number of unique terms in the current document.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Xapian::termcount get_wdf() const
Get the Within Document Frequency of the term in the current document.
void description_append(std::string &desc, const std::string &s)
string get_description() const
Get a description of the postlist.
Internal * next()
Advance the current position to the next document in the postlist.
Xapian::termcount get_wdf_upper_bound() const
Postlists for remote databases.
Xapian::termcount get_doclength() const
Get the length of the current document.
bool at_end() const
Return true if and only if we've moved off the end of the list.
PostList * skip_to(Xapian::docid did, double weight)
Skip forward to the next document with document ID >= the supplied document ID (the weight parameter ...
Append a string to an object description, escaping invalid UTF-8.
PositionList * open_position_list() const
Read the position list for the term in the current document and return a pointer to it (not owned by ...
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Xapian::doccount get_termfreq() const
Get number of documents indexed by this term.
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.
void decode_length(const char **p, const char *end, unsigned &out)
Decode a length encoded by encode_length.