XapianValuePostingSource

XapianValuePostingSource — Value posting source

Functions

Properties

guint slot Read / Write / Construct Only

Object Hierarchy

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

Description

XapianValuePostingSource is a XapianPostingSource that generates weights from a value slot. It is typically used as a base class for classes that generate weights using values stored in the specified slot. See XapianValueWeightPostingSource for an implementation that uses sortable_unserialise to convert values directly to weights.

Functions

xapian_value_posting_source_new ()

XapianValuePostingSource *
xapian_value_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 XapianValuePostingSource instance.

[transfer full]

Since: 1.2


xapian_value_posting_source_get_slot ()

guint
xapian_value_posting_source_get_slot (XapianValuePostingSource *self);

Accessor for the value of the “slot” property.

Parameters

Returns

the value of the “slot” property

Since: 1.2

Types and Values

Property Details

The “slot” property

  “slot”                     guint

Slot in the database entries to use for source.

Flags: Read / Write / Construct Only

Default value: 0