LSHash icon indicating copy to clipboard operation
LSHash copied to clipboard

How to delete on index item?

Open dvstream opened this issue 9 years ago • 1 comments

How to delete on index item? Not only add a item to index, but how to delete one?

dvstream avatar Apr 15 '15 13:04 dvstream

You should be able to iterate the the hash tables and remove the hashed value of the item. See how things are added below: https://github.com/kayzh/LSHash/blob/master/lshash/lshash.py#L203 So you would need to get the hash for the item (using the _hash method), then remove the hashed value from any hash tables.

rdooley avatar Apr 15 '15 14:04 rdooley