22 #ifndef XAPIAN_INCLUDED_DOCUMENT_H
23 #define XAPIAN_INCLUDED_DOCUMENT_H
25 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD
26 # error Never use <xapian/document.h> directly; include <xapian.h> instead.
30 #include <string_view>
114 std::string get_data()
const;
122 void set_data(std::string_view data);
148 void remove_term(std::string_view
term);
151 void add_posting(std::string_view
term,
170 void remove_posting(std::string_view
term,
275 std::string serialise()
const;
278 static Document unserialise(std::string_view serialised);
281 std::string get_description()
const;
Compiler attribute macros.
Abstract base class for a document.
Class representing a document.
Document(const Document &o)
Copy constructor.
Document(Document &&o)
Move constructor.
Document & operator=(const Document &o)
Assignment operator.
void add_boolean_term(std::string_view term)
Add a boolean filter term to the document.
void swap(Document &o)
Efficiently swap this Document object with another.
Xapian::Internal::intrusive_ptr_nonnull< Internal > internal
void remove_value(Xapian::valueno slot)
Remove any value from the specified slot.
TermIterator termlist_end() const noexcept
End iterator corresponding to termlist_begin().
Document & operator=(Document &&o)
Move assignment operator.
ValueIterator values_end() const noexcept
End iterator corresponding to values_begin().
Class for iterating over a list of terms.
Class for iterating over document values.
The Xapian namespace contains public interfaces for the Xapian library.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned valueno
The number for a value slot in a document.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Class for iterating over a list of terms.
Class for iterating over document values.
Define XAPIAN_VISIBILITY_* macros.
#define XAPIAN_VISIBILITY_DEFAULT
#define XAPIAN_VISIBILITY_INTERNAL