This is a temporary implementation to maintain the support in master, specifically removing search results for files that are deleted. I added details in a comment.