#include <document.h>
Collaboration diagram for Xapian::Document:
Public Methods | |
Document (Internal *internal_) | |
Document (const Document &other) | |
Copying is allowed. More... | |
void | operator= (const Document &other) |
Assignment is allowed. More... | |
Document () | |
Make a new empty Document. More... | |
~Document () | |
Destructor. More... | |
std::string | get_value (Xapian::valueno value) const |
Get value by number (>= 0). More... | |
void | add_value (Xapian::valueno valueno, const std::string &value) |
Add a new value. It will replace any existing value with the. More... | |
void | remove_value (Xapian::valueno valueno) |
Remove any value with the given number. More... | |
void | clear_values () |
Remove all values associated with the document. More... | |
std::string | get_data () const |
Get data stored in the document. More... | |
void | set_data (const std::string &data) |
Set data stored in the document. More... | |
void | add_posting (const std::string &tname, Xapian::termpos tpos, Xapian::termcount wdfinc=1) |
Add an occurrence of a term at a particular position. More... | |
void | add_term_nopos (const std::string &tname, Xapian::termcount wdfinc=1) |
Add a term to the document, without specifying a position that it occurs at. More... | |
void | remove_posting (const std::string &tname, Xapian::termpos tpos, Xapian::termcount wdfdec=1) |
Remove a posting of a term from the document. More... | |
void | remove_term (const std::string &tname) |
Remove a term and all postings associated with it. More... | |
void | clear_terms () |
Remove all terms (and postings) from the document. More... | |
Xapian::termcount | termlist_count () const |
Count the terms in this document. More... | |
TermIterator | termlist_begin () const |
Iterator for the terms in this document. More... | |
TermIterator | termlist_end () const |
Equivalent end iterator for termlist_begin(). More... | |
Xapian::termcount | values_count () const |
Count the values in this document. More... | |
ValueIterator | values_begin () const |
Iterator for the values in this document. More... | |
ValueIterator | values_end () const |
Equivalent end iterator for values_begin(). More... | |
std::string | get_description () const |
Introspection method. More... | |
Public Attributes | |
Xapian::Internal::RefCntPtr< Internal > | internal |
|
Copying is allowed. The internals are reference counted, so copying is cheap. |
|
Make a new empty Document.
|
|
Destructor.
|
|
Add an occurrence of a term at a particular position. Multiple occurrences of the term at the same position are represented only once in the positional information, but do increase the wdf. If the term is not already in the document, it will be added to it.
|
|
Add a term to the document, without specifying a position that it occurs at. Any existing positional information for the term will be left unmodified.
|
|
Add a new value. It will replace any existing value with the.
|
|
Remove all terms (and postings) from the document.
|
|
Remove all values associated with the document.
|
|
Get data stored in the document. This is a potentially expensive operation, and shouldn't normally be used in a match decider functor. Put data for use by match deciders in a value instead. |
|
Introspection method.
|
|
Get value by number (>= 0).
|
|
Assignment is allowed. The internals are reference counted, so assignment is cheap. |
|
Remove a posting of a term from the document. Note that the term will still index the document even if all occurrences are removed. To remove a term from a document completely, use remove_term().
|
|
Remove a term and all postings associated with it.
|
|
Remove any value with the given number.
|
|
Set data stored in the document.
|
|
Iterator for the terms in this document.
|
|
Count the terms in this document.
|
|
Equivalent end iterator for termlist_begin().
|
|
Iterator for the values in this document.
|
|
Count the values in this document.
|
|
Equivalent end iterator for values_begin().
|