How does es fetch the right source with stale docIDs, after lucene merged queried segments

How to hold?
I don't find any filter to skip segments using by searches in findMerges source code.