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 an item from the indexer? #2

Closed
acerbetti opened this issue Nov 10, 2015 · 2 comments
Closed

How to delete an item from the indexer? #2

acerbetti opened this issue Nov 10, 2015 · 2 comments

Comments

@acerbetti
Copy link

I can only see the insert and update, is it possible to add the delete as well ?

Thanks for your hard work

@ipodishima
Copy link
Contributor

Hi,

Thank you ;)
For the deletion, you only have to remove the object from the db and it will disappear from the index as well. I did not exposed the method to delete from the index.
If you do not want to add an item to the index, you can do so though

@mbjacks
Copy link

mbjacks commented Nov 18, 2015

@ipodishima

There is a use case where for security reasons you would want to delete the searchable index, but not remove data from the database. You may want to consider exposing a method to remove all indexed items.

Thank you as well for you work!

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

3 participants