Method
IdeFuzzyIndexBuilderinsert
Declaration
guint64
ide_fuzzy_index_builder_insert (
IdeFuzzyIndexBuilder* self,
const gchar* key,
GVariant* document,
guint priority
)
Description
Inserts document
into the index using key
as the lookup key.
If a matching document (checked by hashing document
) has already
been inserted, only a single instance of the document will be stored.
If document
is floating, it will be consumed.
priority
may be used to group results by priority. Priority must be
less than 256.
Parameters
key
-
Type:
const gchar*
The UTF-8 encoded key for the document.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. document
-
Type:
GVariant
The document to store.
The data is owned by the caller of the method. priority
-
Type:
guint
An optional priority for the keyword.