FuzzyIndexBuilder.insert

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.

class FuzzyIndexBuilder
ulong
insert
(
string key
,
Variant document
,
)

Parameters

key
Type: string

The UTF-8 encoded key for the document

document
Type: Variant

The document to store

priority
Type: uint

An optional priority for the keyword.

Return Value

Type: ulong

The document id registered for @document.

Meta