Extracted at 2016-03-29.
pike.lysator.liu.se
[Top]
Public
Public.Xapian
Public.Xapian.Document

Method Public.Xapian.Document()->remove_posting()


Method remove_posting

void remove_posting(string tname, int tpos, int wdfdec)

Description

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().

Parameter tname

The name of the term.

Parameter tpos

The position of the term.

Parameter wdfdec

The decrement that will be applied to the wdf when removing this posting. The wdf will not go below the value of 0.

Note

An error will be thrown if the term is not at the position specified in the position list for this term in this document or if the term is not in the document.