LSHash
LSHash copied to clipboard
How to delete on index item?
How to delete on index item? Not only add a item to index, but how to delete one?
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.