I found a bug on mongoosastic, is that whenever I delete all of my user's data from mongodb, for somehow if I do User.search()
, it is still showing the user's data, although I already deleted my user's data.
Possibly the data has not yet deleted in the elasticsearch itself. How do I solve this problem?