FuzzyIndexBuilder

Constructors

this
this(DzlFuzzyIndexBuilder* dzlFuzzyIndexBuilder, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this()

Members

Functions

getCaseSensitive
bool getCaseSensitive()
getDocument
Variant getDocument(ulong documentId)

Returns the document that was inserted in a previous call to dzl_fuzzy_index_builder_insert().

getFuzzyIndexBuilderStruct
DzlFuzzyIndexBuilder* getFuzzyIndexBuilderStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

insert
ulong insert(string key, Variant document, uint priority)

Inserts @document into the index using @key as the lookup key.

setCaseSensitive
void setCaseSensitive(bool caseSensitive)
setMetadata
void setMetadata(string key, Variant value)
setMetadataString
void setMetadataString(string key, string value)
setMetadataUint32
void setMetadataUint32(string key, uint value)
setMetadataUint64
void setMetadataUint64(string key, ulong value)
write
bool write(FileIF file, int ioPriority, Cancellable cancellable)
writeAsync
void writeAsync(FileIF file, int ioPriority, Cancellable cancellable, GAsyncReadyCallback callback, void* userData)

Builds and writes the index to @file. The file format is a GVariant on disk and can be loaded and searched using #FuzzyIndex.

writeFinish
bool writeFinish(AsyncResultIF result)

Static functions

getType
GType getType()

Variables

dzlFuzzyIndexBuilder
DzlFuzzyIndexBuilder* dzlFuzzyIndexBuilder;

the main Gtk struct

Meta