My api generates a feed based on the database records. Elasticsearch consumes this feed using a script. If an item is deleted from my database it will not be in the feed, and therefore the update script does not remove it from elasticsearch.
What is the best approach for handling this case? Should I only soft delete items in the database?