25 #ifndef XAPIAN_INCLUDED_DOCUMENT_H 26 #define XAPIAN_INCLUDED_DOCUMENT_H 28 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD 29 # error Never use <xapian/document.h> directly; include <xapian.h> instead. 85 void operator=(
const Document &other);
87 #ifdef XAPIAN_MOVE_SEMANTICS 134 std::string get_data()
const;
145 void set_data(
const std::string &data);
161 void add_posting(
const std::string & tname,
213 void remove_posting(
const std::string & tname,
247 void remove_term(
const std::string & tname);
296 docid get_docid()
const;
305 std::string serialise()
const;
309 static Document unserialise(
const std::string &serialised);
312 std::string get_description()
const;
317 #endif // XAPIAN_INCLUDED_DOCUMENT_H The Xapian namespace contains public interfaces for the Xapian library.
Compiler attribute macros.
A document in the database, possibly plus modifications.
Class for iterating over document values.
TermIterator termlist_end() const
Equivalent end iterator for termlist_begin().
#define XAPIAN_VISIBILITY_DEFAULT
Class for iterating over a list of terms.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Define XAPIAN_VISIBILITY_* macros.
Class for iterating over document values.
ValueIterator values_end() const
Equivalent end iterator for values_begin().
unsigned valueno
The number for a value slot in a document.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
void add_boolean_term(const std::string &term)
Add a boolean filter term to the document.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
A smart pointer that uses intrusive reference counting.
Class for iterating over a list of terms.
A handle representing a document in a Xapian database.