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

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


Method add_posting

void add_posting(string tname, int termpos, int termcount)

Description

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.

Parameter tname

The name of the term.

Parameter termpos

The position of the term.

Parameter termcount

The increment that will be applied to the wdf for this term.