Index object in persistent storage.
( key, val [, replace: true|false ] ) : true|false
Inserts val object into Index and associates it with key value. Optionally replaces it with existing object if it exists.
Method removes object obj by key from the index. Method returns true on success, otherwise false.
If Index is unique, obj is optional.
( min-key, max-key [, ascent [, start-inclusive [, end-inclusive]]] ) returns: selection object.
Returns selection in the Index based on criteria min-key, max-key, ascent or descent order, start-inclusive, end-inclusive. Default values:
Example:
var sel = index.select(minVal, maxVal, true);
for( var obj in sel ) { ... }
Removes all items from the index object.