Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to delete on index item? #6

Open
dvstream opened this issue Apr 15, 2015 · 1 comment
Open

How to delete on index item? #6

dvstream opened this issue Apr 15, 2015 · 1 comment

Comments

@dvstream
Copy link

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

@rdooley
Copy link

rdooley commented Apr 15, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants