I can see 2 or 3 ways.
- Add isDeleted to your index.
- Use a partial index that exclude isDeleted:true
- Rather than setting isDeleted true and polluting your working set with deleted documents, move them is another collection if you are really interested in historical data.