21 #ifndef XAPIAN_INCLUDED_TERMINFO_H
22 #define XAPIAN_INCLUDED_TERMINFO_H
Metadata for a term in a document.
unsigned split
Split point in the position range.
bool decrease_wdf(Xapian::termcount delta)
Decrease within-document frequency.
bool add_position(Xapian::termcount wdf_inc, Xapian::termpos termpos)
Add a position.
bool is_deleted() const
Has this term been deleted from this document?
bool remove_position(Xapian::termpos termpos)
Remove a position.
void merge() const
Merge sorted ranges before and after split.
Xapian::termpos remove_positions(Xapian::termpos termpos_first, Xapian::termpos termpos_last)
Remove a range of positions.
TermInfo(Xapian::termcount wdf_, Xapian::termpos termpos)
Constructor which also adds an initial position.
bool increase_wdf(Xapian::termcount delta)
Increase within-document frequency.
Xapian::termcount get_wdf() const
Get the within-document frequency.
TermInfo(Xapian::termcount wdf_)
Constructor.
size_t count_positions() const
bool has_positions() const
void append_position(Xapian::termpos termpos)
Append a position.
const Xapian::VecCOW< Xapian::termpos > * get_positions() const
Get a pointer to the positions.
Xapian::VecCOW< Xapian::termpos > positions
Positions at which the term occurs.
Suitable for "simple" type T.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Custom vector implementations using small vector optimisation.