XapianValueWeightPostingSource

XapianValueWeightPostingSource — Value weight posting source

Functions

Object Hierarchy

    GObject
    ╰── XapianPostingSource
        ╰── XapianValuePostingSource
            ╰── XapianValueWeightPostingSource

Description

XapianValueWeightPostingSource is a posting source which reads weights from a value slot.

This returns entries for all documents in the given database which have a non empty values in the specified slot. It returns a weight calculated by applying sortable_unserialise to the value stored in the slot (so the values stored should probably have been calculated by applying sortable_serialise to a floating point number at index time).

Functions

xapian_value_weight_posting_source_new ()

XapianValueWeightPostingSource *
xapian_value_weight_posting_source_new
                               (unsigned int slot,
                                GError **error);

If the initializion failed, error is set, and this function will return NULL.

Parameters

slot

slot in the database entries to use for source

 

error

return location for a GError, or NULL

 

Returns

the newly created XapianValueWeightPostingSource instance.

[transfer full]

Since: 1.2

Types and Values