insert


Description:

public uint64 insert (string key, Variant document, uint priority)

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:

this

A FuzzyIndexBuilder

key

The UTF-8 encoded key for the document

document

The document to store

priority

An optional priority for the keyword.

Returns:

The document id registered for document.