I am currently using FOSElasticaBundle in my projects and the entities that is to be searched is using softdeletable . It seems that this is not going very well since when the entity is softdeleted the index on elastic search is not removed. Populating the index again is a very expensive operation and takes 30 minutes to complete due to the large item set that I have (1.5 million items).
What is the best way to remove index from the elastic search manually? I was planning to use the softdeletable listener so when a softdelete happens I would manually then remove it from the index. But I am not sure how to do that via elastica.
Create entity listener:
Register listener via service: